diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 21:43:36 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-02 21:43:36 +0000 |
commit | 5693bd6b6326f0eed4be9f56c0506c174359f5e0 (patch) | |
tree | c242e606d3a1f299bbda4403dc8d1ca0e0928934 /build/mac | |
parent | 1f7d7e949149b4e58a34e7250f607eed4c3d07fd (diff) | |
download | chromium_src-5693bd6b6326f0eed4be9f56c0506c174359f5e0.zip chromium_src-5693bd6b6326f0eed4be9f56c0506c174359f5e0.tar.gz chromium_src-5693bd6b6326f0eed4be9f56c0506c174359f5e0.tar.bz2 |
Rename the breakpad file to match the app name instead of just branding name.
Build a tar.bz2 out of the .dsym for archiving.
Review URL: http://codereview.chromium.org/118129
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rwxr-xr-x | build/mac/dump_app_syms | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build/mac/dump_app_syms b/build/mac/dump_app_syms index 4ed9a5e..044e172 100755 --- a/build/mac/dump_app_syms +++ b/build/mac/dump_app_syms @@ -30,9 +30,19 @@ FULL_VERSION="${MAJOR}.${MINOR}.${BUILD}.${PATCH}" SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.app" # Created by the build/mac/strip_from_xcode script. UNSTRIPPED_APP="${SRC_APP_PATH}.dSYM/Contents/Resources/DWARF/${SRC_APP_NAME}" -SYMBOL_FILE="${BUILT_PRODUCTS_DIR}/${BUILD_BRANDING}-${FULL_VERSION} i386.breakpad" +SYMBOL_FILE="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}-${FULL_VERSION}-i386.breakpad" # Only run dump_syms if the file has changed since we last did a dump. if [ "${UNSTRIPPED_APP}" -nt "${SYMBOL_FILE}" ] ; then "${BREAKPAD_DUMP_SYMS}" -a i386 "${UNSTRIPPED_APP}" > "${SYMBOL_FILE}" fi + +DSYM_NAME="${SRC_APP_NAME}.app.dSYM" +DSYM_TAR_PATH="${BUILT_PRODUCTS_DIR}/${DSYM_NAME}.tar.bz2" + +# Make a .tar.bz2 out of the .dSYM +if [ "${BUILT_PRODUCTS_DIR}/${DSYM_NAME}" -nt "${DSYM_TAR_PATH}" ] ; then + # we do a cd so when building the tar, we don't include the build dir in the + # tar paths. + (cd "${BUILT_PRODUCTS_DIR}" && tar -jcf "${DSYM_TAR_PATH}" "${DSYM_NAME}") +fi |