Skip to content

Instantly share code, notes, and snippets.

@aquarius
Created October 18, 2011 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aquarius/1295218 to your computer and use it in GitHub Desktop.
Save aquarius/1295218 to your computer and use it in GitHub Desktop.
Workaround to get a continuous build number in git
v=`git log --pretty=format:'' | wc -l`
defaults write "${TARGET_BUILD_DIR}"/"${CONTENTS_FOLDER_PATH}"/Info CFBundleVersion $v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment