summaryrefslogtreecommitdiffstats
path: root/tools/sfwebcron
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sfwebcron')
-rwxr-xr-xtools/sfwebcron13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/sfwebcron b/tools/sfwebcron
index c270cef..0f31fcf 100755
--- a/tools/sfwebcron
+++ b/tools/sfwebcron
@@ -12,25 +12,24 @@ trap 'echo "Command failed at line $LINENO"' ERR
12# Set working variables 12# Set working variables
13PROJECT=nagiosplug 13PROJECT=nagiosplug
14IN=${HOME}/sfwebcron 14IN=${HOME}/sfwebcron
15PROBE="developer-guidelines.html.last"
15OUT_SERVER="tonvoon@frs.sourceforge.net" 16OUT_SERVER="tonvoon@frs.sourceforge.net"
16OUT_PATH="/home/groups/n/na/nagiosplug/htdocs" 17OUT_PATH="/home/groups/n/na/nagiosplug/htdocs"
17 18
18if [[ ! -e developer-guidelines.html.last ]] ; then
19 touch developer-guidelines.html.last
20fi
21
22# Get latest dev guildelines 19# Get latest dev guildelines
23[[ ! -d $IN ]] && mkdir $IN 20[[ ! -d $IN ]] && mkdir $IN
24cd $IN 21cd $IN
25if [[ ! -d nagios-plugins ]] ; then 22if [[ ! -d nagios-plugins ]]
23then
26 git clone https://github.com/nagios-plugins/nagios-plugins.git nagios-plugins 24 git clone https://github.com/nagios-plugins/nagios-plugins.git nagios-plugins
27fi 25fi
28cd nagios-plugins/doc 26cd nagios-plugins/doc
29git pull 27git pull
30 28
31make 29make
32if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then 30if [[ ! -e $PROBE || developer-guidelines.html -nt $PROBE ]]
31then
33 rsync -av developer-guidelines.{html,sgml} $OUT_SERVER:$OUT_PATH/ 32 rsync -av developer-guidelines.{html,sgml} $OUT_SERVER:$OUT_PATH/
34 touch developer-guidelines.html.last 33 touch $PROBE
35fi 34fi
36 35