OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
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 # This script is intended to run from a "postbuild" action from within Xcode. | 7 # This script is intended to run from a "postbuild" action from within Xcode. |
8 # It sets up symbolic links for an app bundle's Resources and Frameworks | 8 # It sets up symbolic links for an app bundle's Frameworks directory. This is |
9 # directories. This is intended to be used for app bundles that live within | 9 # intended to be used for app bundles that live within the Resources directory |
10 # the Resources directory of a larger app bundle, when the sub-app's | 10 # of a larger app bundle, when the sub-app's Frameworks directory should point |
11 # Resources and Frameworks directories should point to the enclosing app's. | 11 # to the enclosing app's. |
12 | 12 |
13 set -e | 13 set -e |
14 | 14 |
15 CONTENTS_PATH="${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Contents" | 15 CONTENTS_PATH="${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Contents" |
16 | 16 |
17 ln -fhs ../.. "${CONTENTS_PATH}/Resources" | |
18 ln -fhs ../../../Frameworks "${CONTENTS_PATH}/Frameworks" | 17 ln -fhs ../../../Frameworks "${CONTENTS_PATH}/Frameworks" |
OLD | NEW |