Skip to content

Instantly share code, notes, and snippets.

@steipete
Created December 20, 2011 15:06
Show Gist options
  • Save steipete/1501874 to your computer and use it in GitHub Desktop.
Save steipete/1501874 to your computer and use it in GitHub Desktop.
# postprocess Info.plist to include the git hash
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion `git rev-list --all |wc -l`" "${INSTALL_DIR}/Versions/${FMK_VERSION}/Resources/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString `git describe --tags`" "${INSTALL_DIR}/Versions/${FMK_VERSION}/Resources/Info.plist"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment