Skip to content

Commit

Permalink
script to tag releases
Browse files Browse the repository at this point in the history
  • Loading branch information
npryce committed Feb 15, 2016
1 parent 2df734f commit de1b3e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tag-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh -e
version=$1

if [ -z ${version} ]
then
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`
exit 1
else
git tag -u [email protected] ${version} -m "tagging version ${version}"
fi

0 comments on commit de1b3e7

Please sign in to comment.