Skip to content

Instantly share code, notes, and snippets.

@ellneal
Created March 21, 2012 02:19
Show Gist options
  • Save ellneal/2143783 to your computer and use it in GitHub Desktop.
Save ellneal/2143783 to your computer and use it in GitHub Desktop.
Xcode: Compress project exluding git repository (for source code delivery)
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