Automatically create TESTING/STABLE tags on release.

This commit is contained in:
Michal Čihař
2010-03-12 13:48:03 +01:00
parent bbc3d3debf
commit 105c33fe34

View File

@@ -178,6 +178,14 @@ if [ $# -gt 0 ] ; then
tagname=RELEASE_`echo $version | tr . _ | tr '[:lower:]' '[:upper:]' | tr -d -`
echo "* Tagging release as $tagname"
git tag -a -m "Released $version" $tagname $branch
if echo $version | grep '[a-z_-]' ; then
echo "* Tagging release as TESTING"
git tag -a -f -m "Released $version" TESTING $branch
else
echo "* Tagging release as STABLE"
git tag -a -f -m "Released $version" STABLE $branch
fi
echo " Dont forget to push tags using: git push --tags"
;;
*)
echo "Unknown parameter: $1!"