OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 # |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 # travel through these modules. | 120 # travel through these modules. |
121 case "${SRC_NAME}" in | 121 case "${SRC_NAME}" in |
122 "${SRC_APP_NAME}.app") | 122 "${SRC_APP_NAME}.app") |
123 # Google Chrome Canary is produced during packaging. | 123 # Google Chrome Canary is produced during packaging. |
124 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ | 124 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ |
125 "${SRC_STEM} Canary" "${SRC_STEM} Canary.app" | 125 "${SRC_STEM} Canary" "${SRC_STEM} Canary.app" |
126 ;; | 126 ;; |
127 | 127 |
128 "${SRC_APP_NAME} Helper.app") | 128 "${SRC_APP_NAME} Helper.app") |
129 # Google Chrome Helper EH and Google Chrome Helper NP are produced by | 129 # Google Chrome Helper EH and Google Chrome Helper NP are produced by |
130 # chrome/tools/build/mac/make_more_helpers.sh. | 130 # build/mac/make_more_helpers.sh. |
131 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ | 131 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ |
132 "${SRC_STEM} EH" "${SRC_STEM} EH.app" | 132 "${SRC_STEM} EH" "${SRC_STEM} EH.app" |
133 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ | 133 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ |
134 "${SRC_STEM} NP" "${SRC_STEM} NP.app" | 134 "${SRC_STEM} NP" "${SRC_STEM} NP.app" |
135 ;; | 135 ;; |
136 esac | 136 esac |
137 | 137 |
138 # Remove the .dSYM archive if the file has changed since the archive was | 138 # Remove the .dSYM archive if the file has changed since the archive was |
139 # last generated. This will cause a new .dSYM archive to be created. | 139 # last generated. This will cause a new .dSYM archive to be created. |
140 if [ "${DWARF_PATH}" -nt "${DSYM_TAR_PATH}" ] ; then | 140 if [ "${DWARF_PATH}" -nt "${DSYM_TAR_PATH}" ] ; then |
141 rm -f "${DSYM_TAR_PATH}" | 141 rm -f "${DSYM_TAR_PATH}" |
142 fi | 142 fi |
143 | 143 |
144 # Push the .dSYM bundle onto the DSYMS array so that it will be included in | 144 # Push the .dSYM bundle onto the DSYMS array so that it will be included in |
145 # the .dSYM archive if a new one is needed | 145 # the .dSYM archive if a new one is needed |
146 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" | 146 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" |
147 done | 147 done |
148 | 148 |
149 # Create the archive of .dSYM bundles. | 149 # Create the archive of .dSYM bundles. |
150 if [ ! -e "${DSYM_TAR_PATH}" ] ; then | 150 if [ ! -e "${DSYM_TAR_PATH}" ] ; then |
151 # Change directory so that absolute paths aren't included in the archive. | 151 # Change directory so that absolute paths aren't included in the archive. |
152 (cd "${BUILT_PRODUCTS_DIR}" && | 152 (cd "${BUILT_PRODUCTS_DIR}" && |
153 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") | 153 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") |
154 fi | 154 fi |
OLD | NEW |