Created
May 29, 2012 02:45
-
-
Save sonsongithub/2822226 to your computer and use it in GitHub Desktop.
Xcode "Run script" for auto updating subversion revision and build number.
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
svn update . | |
revisionNumber=$(svnversion -n) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleSubversionRevision $revisionNumber" "$INFOPLIST_FILE" | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment