Code

check_host: Allocate a large-enough buffer for the host table.
[nagiosplug.git] / tools / sfwebcron
1 #! /bin/bash
2 # sfwebcron
4 # To update the developers-guidelines.html and put in html area
5 #
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
19 fi
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
27 fi
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
35 fi