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