From 6f45f4a6b5a65ab12db71623877ce075f218e98c Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 16 Apr 2012 19:11:35 +0000 Subject: Add flat text and PDF translations of documentation from http://trac.rpki.net/, which is now the primary documentation source. This partially addresses #224, although there is no doubt still a way to go on content of the new documentation, given the complaints\\\\\\\\\\helpful suggestions I'm getting from my esteemed group of alpha testers. svn path=/trunk/; revision=4423 --- doc/cronjob.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 doc/cronjob.sh (limited to 'doc/cronjob.sh') diff --git a/doc/cronjob.sh b/doc/cronjob.sh new file mode 100755 index 00000000..9705db75 --- /dev/null +++ b/doc/cronjob.sh @@ -0,0 +1,30 @@ +#!/bin/sh - +# $Id$ + +lock=cronjob.lock + +cd `/usr/bin/dirname $0` || exit + +case "$1" in + +locked) + exec >cronjob.log 2>&1 + set -x + export PATH=/bin:/usr/bin:/usr/local/bin + /usr/local/bin/svn update + /usr/local/bin/python /u/sra/rpki/subvert-rpki.hactrn.net/trunk/buildtools/pull-doc-from-wiki.py + /usr/local/bin/svn status + if test -n "$(/usr/local/bin/svn status doc.*)" + then + /usr/local/bin/svn add --force doc.* manual.pdf + /usr/local/bin/svn commit --message 'Automatic pull of documentation from Wiki.' doc.* manual.pdf + else + /usr/local/bin/svn revert manual.pdf + fi + /usr/local/bin/svn update + ;; +*) + exec /usr/bin/lockf -s -t 0 $lock "$0" locked + ;; + +esac -- cgit v1.2.3