Source

hpaco / bump-version

Full commit
1
2
3
4
5
6
7
#!/usr/bin/env bash
VERSION=$1
cd `dirname $0`
sed -i'~' hpaco.cabal -e '2,2s/^\(version:\s*\)[^\s]\+$/\1'$VERSION'/'
sed -i'~' CommandArgs.hs -e 's/^programVersion = .*$/programVersion = "'$VERSION'"/'
git commit -am'Bumped version'
git tag $VERSION