#!/bin/sh
VERSION=$1
git checkout -b release-${VERSION}
mvn versions:set -DnewVersion=${VERSION}
echo $VERSION > release.version
echo $VERSION > maven.version
git status
echo "Press ENTER to commit ${VERSION}"
read
git commit -a -m "Update version to ${VERSION}"
echo "Press ENTER to push the ${VERSION} branch to GitHub"
read
git push -u origin release-${VERSION}
