Created
March 21, 2012 02:19
-
-
Save ellneal/2143783 to your computer and use it in GitHub Desktop.
Xcode: Compress project exluding git repository (for source code delivery)
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
VERSION_NUMBER=`/usr/libexec/PlistBuddy -c "print CFBundleVersion" $INFOPLIST_FILE` | |
DELIVERY_DIRECTORY="$PROJECT_NAME-$VERSION_NUMBER" | |
cd $PROJECT_DIR/../ | |
mkdir $DELIVERY_DIRECTORY | |
rsync -av --exclude='.git' $PROJECT_DIR $DELIVERY_DIRECTORY | |
tar -zcvf $DELIVERY_DIRECTORY.tar.gz $DELIVERY_DIRECTORY | |
rm -rf $DELIVERY_DIRECTORY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment