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 >/tmp/sfwebcron.log 2>&1 || cat /tmp/sfwebcron.log
10 trap 'echo "Command failed at line $LINENO"' ERR
12 # Set working variables
15 PROBE
="developer-guidelines.html.last"
16 OUT_SERVER
="tonvoon@frs.sourceforge.net"
17 OUT_PATH
="/home/groups/n/na/nagiosplug/htdocs"
19 # Get latest dev guildelines
20 [[ ! -d $IN ]] && mkdir
$IN
22 if [[ ! -d nagios-plugins
]]
24 git clone https
://github.com
/nagios-plugins
/nagios-plugins.git nagios-plugins
30 if [[ ! -e $PROBE || developer-guidelines.html
-nt $PROBE ]]
32 rsync
-av developer-guidelines.
{html
,sgml
} $OUT_SERVER:$OUT_PATH/