diff options
Diffstat (limited to 'tools/sfwebcron')
| -rwxr-xr-x | tools/sfwebcron | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tools/sfwebcron b/tools/sfwebcron deleted file mode 100755 index 0f31fcfb..00000000 --- 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 | |||
| 9 | set -eu | ||
| 10 | trap 'echo "Command failed at line $LINENO"' ERR | ||
| 11 | |||
| 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" | ||
| 18 | |||
| 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 | ||
| 25 | fi | ||
| 26 | cd nagios-plugins/doc | ||
| 27 | git pull | ||
| 28 | |||
| 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 | ||
| 34 | fi | ||
| 35 | |||
