Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- release=`git tag | tail -n 1`
- build=`git log --oneline HEAD^1.. | awk '{print $1 }'`
- # build=`git log -n1 --date=short --format="%ad (%h)"`
- # Shows 2012-04-24 (5fb42cb)
- plist_path=`find . -type f -iname *.plist -d 2`
- /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $release" $plist_path
- /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $build" $plist_path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement