update_crontab()
{
    if crontab -u perforce -l | grep backup.sh > /dev/null 2>&1 ; then
	:  # it's already there
    else
	( crontab -u perforce -l && cat $SCRIPT_DIRECTORY/crontab ) | \
	crontab -u perforce -
    fi
}

update_crontab		&&

# Clean out the source. We can't cache it because the filename (p4d) is
# the same whatever the version. There seems no way to work around this
# at the moment.
rm -f $SOURCE_CACHE/$SOURCE
rm -f $SOURCE_CACHE/$SOURCE2
