#!/bin/sh

if test $# -gt 0; then
  echo "... releasing $1"
  git commit -a -m "Release $1" \
    && git tag "$1" \
    && git push \
    && git push --tags \
    && echo "... complete"
else
  echo "tag required" && exit 1
fi
