#!/bin/sh
# (obviously, svn-mailer and ciabot.sh must be in the relevant PATH)
error=0
sudo sv_extra_svn_postcommit_bridge -t $1 -r $2 -p freeciv || error=1
svn-mailer -d$1 -r$2 -f/etc/svn-mailer-diff.conf || error=1
exit $error  # svn will display stderr if non-zero
