diff options
author | Rob Austein <sra@hactrn.net> | 2007-08-13 17:32:49 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-08-13 17:32:49 +0000 |
commit | 3c8edea2234a8d880a309a7f5d373db3cdc66959 (patch) | |
tree | 2e1d1ede4258535d758019ecd127ddf264239ff0 /scripts/cronjob.sh | |
parent | 37f59a534df5e6b113323687c3342ad871ac5423 (diff) |
Doxygen robot
svn path=/scripts/cronjob.sh; revision=878
Diffstat (limited to 'scripts/cronjob.sh')
-rwxr-xr-x | scripts/cronjob.sh | 30 |
1 files changed, 30 insertions, 0 deletions
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 |