#!/bin/bash -ex
#update web2py to revision specified on command line. In case no revision specified, update.
cd /usr/share/web2py
if [ -z "$1" ]; then
		bzr update
	else
		bzr update r $1
fi
