Created
July 19, 2010 11:54
-
-
Save tadelv/481305 to your computer and use it in GitHub Desktop.
Store dSYM files in a folder and add to git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# http://www.cimgf.com/2009/12/23/automatically-save-the-dsym-files/ | |
# | |
if [ "$BUILD_STYLE" == "Debug" ]; then | |
echo "Skipping debug" | |
exit 0; | |
fi | |
if [ "$EFFECTIVE_PLATFORM_NAME" == "-iphonesimulator" ]; then | |
echo "Skipping simulator build" | |
exit 0; | |
fi | |
SRC_PATH=${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME} | |
RELATIVE_DEST_PATH=dSYM/${EXECUTABLE_NAME}.$(date +%Y-%m-%d-%H%M%S).app.dSYM | |
DEST_PATH=${PROJECT_DIR}/${RELATIVE_DEST_PATH} | |
echo "moving ${SRC_PATH} to ${DEST_PATH}" | |
cp -r "${SRC_PATH}" "${DEST_PATH}" | |
if [ -f ".git/config" ]; then | |
git add "${RELATIVE_DEST_PATH}" | |
git commit -m "Added dSYM file for ${BUILD_STYLE} build" "${RELATIVE_DEST_PATH}" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment