jFuzzyLogic/git/tag

15 lines
210 B
Plaintext
Raw Normal View History

2014-12-19 14:30:46 +01:00
#!/bin/sh -e
ver="$1"
# Parse command line parameter
if [ -z "$ver" ]
then
echo Argument version number missing
exit 1
fi
# Tag and push tags
git tag -a "v$ver" -m "Release v$ver"
git push origin "v$ver"