Skip to content

Commit de1b3e7

Browse files
committed
script to tag releases
1 parent 2df734f commit de1b3e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tag-release

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh -e
2+
version=$1
3+
4+
if [ -z ${version} ]
5+
then
6+
echo "ERROR no tag given; last tag:" `git tag -l | grep -E '[0-9]+(.[0-9]+){2}' | sort -t. -k 1,1nr -k 2,2nr -k 3,3nr | head -1`
7+
exit 1
8+
else
9+
git tag -u [email protected] ${version} -m "tagging version ${version}"
10+
fi

0 commit comments

Comments
 (0)