Created
March 23, 2013 14:39
-
-
Save jinwoo-lee-github/5227940 to your computer and use it in GitHub Desktop.
xcode version from git
This file contains 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
INFO_PLIST="${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Info" | |
GIT_VERSION=$(git --git-dir="${PROJECT_DIR}/.git" --work-tree="${PROJECT_DIR}/" rev-list master | wc -l) | |
GIT_VERSION=${GIT_VERSION// /} | |
MD_VERSION="1.05." | |
VERSION=$MD_VERSION$GIT_VERSION | |
defaults write $INFO_PLIST CFBundleVersion "$VERSION" | |
echo "VERSION: ${VERSION}" | |
echo $INFO_PLIST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment