10 if [ -z "$name" ]; then
14 if [ ! -f VERSION ] || [ ! -d .git ]; then
15 echo "Must be run from top-level directory"
19 if [ -n "`git status -s -uno`" ]; then
20 echo "Working directory is dirty!"
24 echo -e "Tag commit\n\n `git log -1 --oneline`"
25 echo -e "\nof branch\n\n `git branch | sed -n 's/^\* //p'`"
26 echo -ne "\nas $name? (y/N) "
28 if [ "$answer" != "y" ]; then
33 git commit -sv VERSION -m "Bump version number"
34 git tag -as $name -m "Release $name"