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 # This script expects the following environment variables to be set. Xcode | 7 # This script expects the following environment variables to be set. Xcode |
8 # normally sets them: | 8 # normally sets them: |
9 # | 9 # |
10 # CONFIGURATION - Release or Debug; this script only operates when Release. | 10 # CONFIGURATION - Release or Debug; this script only operates when Release. |
11 # SRCROOT - /path/to/chrome/src/chrome | 11 # SRCROOT - /path/to/chrome/src/chrome |
12 # BUILT_PRODUTS_DIR - /path/to/chrome/src/xcodebuild/Release | 12 # BUILT_PRODUTS_DIR - /path/to/chrome/src/xcodebuild/Release |
13 # | 13 # |
14 # The script also takes a single argument defining the branding type. | 14 # The script also takes a single argument defining the branding type. |
15 # | 15 # |
16 # To test this script without running an entire build: | 16 # To test this script without running an entire build: |
17 # | 17 # |
18 # cd /path/to/chrome/src/chrome | 18 # cd /path/to/chrome/src/chrome |
19 # CONFIGURATION=Release \ | 19 # CONFIGURATION=Release \ |
20 # SRCROOT=$(pwd) \ | 20 # SRCROOT=$(pwd) \ |
21 # BUILT_PRODUCTS_DIR=$(pwd)/../xcodebuild/Release \ | 21 # BUILT_PRODUCTS_DIR=$(pwd)/../xcodebuild/Release \ |
22 # ../build/mac/dump_app_syms Chromium | 22 # tools/build/mac/dump_app_syms Chromium |
23 | 23 |
24 # Make sure we got the header to write into passed to us | 24 # Make sure we got the header to write into passed to us |
25 if [ $# -ne 1 ]; then | 25 if [ $# -ne 1 ]; then |
26 echo "error: missing branding as an argument" >&2 | 26 echo "error: missing branding as an argument" >&2 |
27 exit 1 | 27 exit 1 |
28 fi | 28 fi |
29 | 29 |
30 set -ex | 30 set -ex |
31 | 31 |
32 # Skip out if we're aren't in Release mode, no need for dump_syms on debug runs. | 32 # Skip out if we're aren't in Release mode, no need for dump_syms on debug runs. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 # the .dSYM archive if a new one is needed | 80 # the .dSYM archive if a new one is needed |
81 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" | 81 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" |
82 done | 82 done |
83 | 83 |
84 # Create the archive of .dSYM bundles. | 84 # Create the archive of .dSYM bundles. |
85 if [ ! -e "${DSYM_TAR_PATH}" ] ; then | 85 if [ ! -e "${DSYM_TAR_PATH}" ] ; then |
86 # Change directory so that absolute paths aren't included in the archive. | 86 # Change directory so that absolute paths aren't included in the archive. |
87 (cd "${BUILT_PRODUCTS_DIR}" && | 87 (cd "${BUILT_PRODUCTS_DIR}" && |
88 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") | 88 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") |
89 fi | 89 fi |
OLD | NEW |