This file contains hidden or 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
| # This script fixes up the CFBundleShortVersionString with a string derived from git. | |
| # Place it as a Build Phase just before Copy Bundle Resources | |
| # clone: git submodule add [email protected]:1151287.git gist-1151287 | |
| # call: ${SRCROOT}/gist-1151287/insert_version.sh | |
| # PlistBuddy and git executables | |
| buddy='/usr/libexec/PlistBuddy' | |
| git='/usr/bin/git' |
This file contains hidden or 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
| #!/bin/bash | |
| # This script automatically sets the version and short version string of | |
| # an Xcode project from the Git repository containing the project. | |
| # | |
| # To use this script in Xcode 4, add the contents to a "Run Script" build | |
| # phase for your application target. | |
| set -o errexit | |
| set -o nounset |
NewerOlder