Created
March 7, 2013 10:06
-
-
Save johanneswseitz/5106938 to your computer and use it in GitHub Desktop.
Bumps the internal, technical version number of an iOS App, and creates and pushes a git tag with the new version number.
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
#!/bin/sh | |
agvtool next-version -all | |
NEW_VERSION=`agvtool what-version -terse` | |
MARKETING_VERSION=`agvtool what-marketing-version -terse1` | |
# Generate release notes by taking commit messages prefixed with TF: from git since last tag. | |
git log `git describe --tags --abbrev=0`..HEAD --format=%B | grep "^TF:" | sed 's/TF:/-/g' > whats-new.txt | |
git commit -am "Version bump to $NEW_VERSION" | |
git tag "$MARKETING_VERSION-build-$NEW_VERSION" | |
git push --tags origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment