2013-11-28 22:06:53 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
|
|
|
echo -e "$0 [TAG]"
|
|
|
|
echo -e "\t\t[TAG] : Tag to set on the version"
|
|
|
|
exit -1
|
|
|
|
}
|
|
|
|
|
|
|
|
#verify all input parameters :
|
|
|
|
tag=""
|
|
|
|
if [ "$1" = "" ] ; then
|
|
|
|
usage
|
|
|
|
else
|
|
|
|
tag="$1"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -n $tag > tag
|
|
|
|
|
2013-11-28 22:26:11 +01:00
|
|
|
git commit -a -m "Update version tag : $tag"
|
2013-11-28 22:06:53 +01:00
|
|
|
git tag $tag
|