#!/bin/sh DEPLOYURL=git@heroku.com:quod-erat.git DEPLOYDIR=quod-erat.git RELBUILDDIR=../build COMMITMSG="Deployment of revision `svnversion .` on `date`" echo "$COMMITMSG..." if [ ! -d "$DEPLOYDIR" ]; then git clone "$DEPLOYURL" "$DEPLOYDIR" fi (cd "$DEPLOYDIR" && \ git pull && \ rm -rf * && \ cp -r "$RELBUILDDIR"/* . && \ git add . && \ git commit -a -m "$COMMITMSG" && \ git push) echo "Done."