OLD | NEW |
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 Loading... |
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 |
OLD | NEW |