#!/bin/sh # cron doesn't seem to like doing this iself... . /etc/profile # Path to trunk MYDIR="/home/dmdirc/google" # Path to ant binary ANT="/usr/bin/ant" # Path to svn binary SVN="/usr/bin/svn" /bin/sh $MYDIR/oblong.sh "Reports" "Style Report Generation Started"; cd $MYDIR $SVN update if [ "$1" = "--all" ]; then $ANT -k -buildfile $MYDIR/doreports.xml doallreports elif [ "$1" = "--findbugs" ]; then $ANT -k -buildfile $MYDIR/style_build.xml findbugs else $ANT -k -buildfile $MYDIR/doreports.xml domostreports fi /bin/sh $MYDIR/oblong.sh "Reports" "Report Generation Complete"