--- /dev/null
+#!/usr/bin/sh -e
+
+gitcmd() {
+ version=$(cut -d ' ' -f 1 $2/version)
+ pkg=$(printf %s "$2" | sed 's|/||g')
+ git add $2
+}
+
+case $1 in
+ new) gitcmd $@ && git commit -m "$pkg: new package at $version" ;;
+ bump) gitcmd $@ && git commit -m "$pkg: bump to $version" ;;
+ *) printf "No such subcommand.\n"; exit 1 ;;
+esac