Skip to content
This repository
Newer
Older
100755 18 lines (15 sloc) 0.405 kb
5cdfc2f4 »
2010-01-26 Add shell script to automatically changes the version number.
1 #!/bin/sh
2 usage() {
3 echo "usage: bump-version <version-id>"
4 }
5
6 if [ $# -ne 1 ]; then
7 usage
8 exit 1
9 fi
10
3625f395 »
2010-01-28 Make git-flow-version a first-class citizen amongst the other subcomm…
11 if ! sed 's/^GITFLOW_VERSION=.*$/GITFLOW_VERSION='$1'/g' git-flow-version > .git-flow-version.new; then
12 echo "Could not replace GITFLOW_VERSION variable." >&2
13 exit 2
14 fi
15
16 mv .git-flow-version.new git-flow-version
059e6895 »
2010-01-26 Make bump-version write to the new location of git-flow-version
17 git add git-flow-version
18 git commit -m "Bumped version number to $1" git-flow-version
Something went wrong with that request. Please try again.