Skip to content

Instantly share code, notes, and snippets.

@birarda
Created July 10, 2012 17:50
Show Gist options
  • Save birarda/3085075 to your computer and use it in GitHub Desktop.
Save birarda/3085075 to your computer and use it in GitHub Desktop.
XCode run script for build number as git commit SHA
#!/bin/sh
buildNumber=`/usr/bin/git rev-parse --short HEAD`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$PROJECT_NAME"/"$PROJECT_NAME"-Info.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment