jFuzzyLogic/git/tag
2014-12-19 08:30:46 -05:00

15 lines
210 B
Bash
Executable File

#!/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"