Commit b6f11d72 authored by Sebastian Stark's avatar Sebastian Stark

add a script for tagging a release

parent d4a518a3
#!/bin/zsh
v="$1"
if [[ -z $v ]]
then
print "usage: $0 <version>"
exit 1
fi
if [[ $v == v* ]]
then
print "do not add the v prefix, tag should look like \"1.5\""
exit 1
fi
grep -q "version = \"$v\"" version.go
if [[ $? != 0 ]]
then
print "fix version.go first"
exit 1
fi
echo git tag -s v$v
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment