From 3c8edea2234a8d880a309a7f5d373db3cdc66959 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 13 Aug 2007 17:32:49 +0000 Subject: Doxygen robot svn path=/scripts/cronjob.sh; revision=878 --- scripts/cronjob.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 scripts/cronjob.sh (limited to 'scripts/cronjob.sh') diff --git a/scripts/cronjob.sh b/scripts/cronjob.sh new file mode 100755 index 00000000..61a61bff --- /dev/null +++ b/scripts/cronjob.sh @@ -0,0 +1,30 @@ +#!/bin/sh - +# $Id$ +# +# Generate Doxygen manual for RPKI code. +# +# At the moment this is just for the Python libraries. + +lock=cronjob.lock + +target=/usr/local/www/data/www.hactrn.net/rpki-dox + +cd `/usr/bin/dirname $0` || exit + +case "$1" in + +locked) + exec >cronjob.log 2>&1 + set -x + cd rpki || exit + /usr/local/bin/svn update --quiet + /bin/rm -rf html + /usr/local/bin/doxygen + /usr/local/bin/rsync --archive --itemize-changes --delete-after html/ $target/ + ;; + +*) + exec /usr/bin/lockf -s -t 0 $lock "$0" locked + ;; + +esac -- cgit v1.2.3