Commit 752daa2e authored by Gerd Stolpmann's avatar Gerd Stolpmann

code for tagging a release

parent bb47e18a
......@@ -12,3 +12,28 @@ rm -rf "packages/$destdir"
makepkg -spec wtimer.files -intree . -outtree "packages/$destdir"
(cd packages; tar czf "$destdir.tar.gz" "$destdir")
master="$(git branch | grep '* master')"
if [ -z "$master" ]; then
echo "Error: not on master branch"
exit 1
fi
status="$(git status -uno -s)"
if [ -n "$status" ]; then
echo "Error: git status not clean"
exit 1
else
printf "Tag revision (y/n)? "
read answer
case "$answer" in
y|Y|yes|YES)
git tag -a -m "wtimer-$version" wtimer-$version
git push --tags origin master
echo "New tag: wtimer-$version"
;;
*)
echo "Nothing tagged."
;;
esac
fi
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