Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (17 sloc) 393 Bytes
#!/bin/bash
VERSION=$1
if [ "x$VERSION" == "x" ]; then
echo "release.sh <version>";
echo "";
exit 1;
fi
TAG="holy-$VERSION"
echo "$VERSION" > WebContent/props/version.txt
git commit -a -m "releasing $VERSION"
#git push
git tag -a "$TAG" -m "releasing $TAG"
#git push --tags
echo "master" > WebContent/props/version.txt
git commit -a -m "releasing $VERSION"
git push --tags
git pull