Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 19 lines (15 sloc) 0.405 kB
5cdfc2f @nvie Add shell script to automatically changes the version number.
authored
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
3625f39 @nvie Make git-flow-version a first-class citizen amongst the other subcomm…
authored
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
059e689 @nvie Make bump-version write to the new location of git-flow-version
authored
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.