blob: f7494c9b82d892323d951156d863c39f8b7cd47d [file] [log] [blame]
Vincent Driessen5cdfc2f2010-01-26 11:55:03 +01001#!/bin/sh
2usage() {
3 echo "usage: bump-version <version-id>"
4}
5
6if [ $# -ne 1 ]; then
7 usage
8 exit 1
9fi
10
Vincent Driessen3625f392010-01-28 00:13:26 +010011if ! 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
14fi
15
16mv .git-flow-version.new git-flow-version
Vincent Driessen059e6892010-01-26 15:58:08 +010017git add git-flow-version
18git commit -m "Bumped version number to $1" git-flow-version