developer-guidelines.sgml: Normalize spelling
[monitoring-plugins.git] / tools / sfwebcron
blob0f31fcfbec74f5e6ba922c8a9f46de00870074a6
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 >/tmp/sfwebcron.log 2>&1 || cat /tmp/sfwebcron.log
9 set -eu
10 trap 'echo "Command failed at line $LINENO"' ERR
12 # Set working variables
13 PROJECT=nagiosplug
14 IN=${HOME}/sfwebcron
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
21 cd $IN
22 if [[ ! -d nagios-plugins ]]
23 then
24 git clone https://github.com/nagios-plugins/nagios-plugins.git nagios-plugins
26 cd nagios-plugins/doc
27 git pull
29 make
30 if [[ ! -e $PROBE || developer-guidelines.html -nt $PROBE ]]
31 then
32 rsync -av developer-guidelines.{html,sgml} $OUT_SERVER:$OUT_PATH/
33 touch $PROBE