Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Side by Side Diff: build/mac/copy_framework_unversioned.sh

Issue 9513006: First pass at content shell for the Mac. Doesn't work yet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only, no code change Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/mac/tweak_info_plist.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Copies a framework to its new home, "unversioning" it. 7 # Copies a framework to its new home, "unversioning" it.
8 # 8 #
9 # Normally, frameworks are versioned bundles. The contents of a framework are 9 # Normally, frameworks are versioned bundles. The contents of a framework are
10 # stored in a versioned directory within the bundle, and symbolic links 10 # stored in a versioned directory within the bundle, and symbolic links
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 grep -A10 "^ *cmd LC_ID_DYLIB$" | 93 grep -A10 "^ *cmd LC_ID_DYLIB$" |
94 grep -m1 "^ *name" | 94 grep -m1 "^ *name" |
95 sed -Ee 's/^ *name (.*) \(offset [0-9]+\)$/\1/')" 95 sed -Ee 's/^ *name (.*) \(offset [0-9]+\)$/\1/')"
96 VERSION_PATH="/Versions/${CURRENT_VERSION_ID}/${FRAMEWORK_NAME_NOEXT}" 96 VERSION_PATH="/Versions/${CURRENT_VERSION_ID}/${FRAMEWORK_NAME_NOEXT}"
97 LC_ID_DYLIB_NEW="$(echo "${LC_ID_DYLIB_OLD}" | 97 LC_ID_DYLIB_NEW="$(echo "${LC_ID_DYLIB_OLD}" |
98 sed -Ee "s%${VERSION_PATH}$%/${FRAMEWORK_NAME_NOEXT}%")" 98 sed -Ee "s%${VERSION_PATH}$%/${FRAMEWORK_NAME_NOEXT}%")"
99 99
100 if [ "${LC_ID_DYLIB_NEW}" != "${LC_ID_DYLIB_OLD}" ] ; then 100 if [ "${LC_ID_DYLIB_NEW}" != "${LC_ID_DYLIB_OLD}" ] ; then
101 install_name_tool -id "${LC_ID_DYLIB_NEW}" "${FRAMEWORK_DYLIB}" 101 install_name_tool -id "${LC_ID_DYLIB_NEW}" "${FRAMEWORK_DYLIB}"
102 fi 102 fi
OLDNEW
« no previous file with comments | « no previous file | build/mac/tweak_info_plist.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698