Use a more "natural" way of writing argument lists in extra-opts tests.
[monitoring-plugins.git] / tools / sfwebcron
blobd836a0fdaca63b1ec108c1567c2c1eae43666370
1 #! /bin/bash
2 # sfwebcron
4 # To update the developers-guidelines.html and put in html area
6 # Install in cron with something like:
7 # 47 7 * * * $HOME/bin/sfwebcron
9 function die { echo $1; exit 1; }
11 # Set working variables
12 PROJECT=nagiosplug
13 IN=${HOME}/tmp_sfwebcron
14 OUT_SERVER="tonvoon@shell.sf.net"
15 OUT="/home/groups/n/na/nagiosplug/htdocs"
17 if [[ ! -e developer-guidelines.html.last ]] ; then
18 touch developer-guidelines.html.last
21 # Get latest dev guildelines
22 [[ ! -d $IN ]] && mkdir $IN
23 cd $IN
24 if [[ ! -d doc ]] ; then
25 #cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
26 svn checkout http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk/doc doc
28 cd doc
29 svn update
31 make
32 if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then
33 scp developer-guidelines.{html,sgml} $OUT_SERVER:$OUT
34 touch developer-guidelines.html.last