#!/bin/sh VERSION="$1" if [ "$VERSION" = "" -o "$2" != "" ]; then echo "Usage: makerelese.sh VERSION" exit 1 fi git rev-parse || exit 1 if [ "$( git tag -l "$VERSION" )" != "" ]; then echo "There's already a $VERSION tag, did you forget to update VERSION in the Makefile?" exit 1 fi git tag -a -m"Version $VERSION release." "$VERSION" git push