Skip to content

Instantly share code, notes, and snippets.

@bananita
Created February 26, 2014 13:41
Show Gist options
  • Save bananita/3415194c2610e49a5bf9 to your computer and use it in GitHub Desktop.
Save bananita/3415194c2610e49a5bf9 to your computer and use it in GitHub Desktop.
date as build number
build_number=`date +%d.%m.%Y`
for x in `find ${SRCROOT}/Resources/Applications -name "Info.plist" -print`; do
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${build_number}" "$x"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment