diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-27 23:10:53 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-27 23:10:53 +0200 |
| commit | 9ae1cd8f91aa6b53404e66588679d852d3972bcd (patch) | |
| tree | 1edc8a9ac8e36bf8fabeed7b7b3ad933d691438c /tools/sfwebcron | |
| parent | 983d10e0609175a26675a97129b9e7def18d5f35 (diff) | |
| download | monitoring-plugins-9ae1cd8f91aa6b53404e66588679d852d3972bcd.tar.gz | |
tools: Remove Drupal/SourceForge scripts
We moved our web site away from Drupal and the snapshots/guidelines away
from SourceForge. The new infrastructure scripts will be maintained in
a separate repository together with the Markdown source of the new web
site.
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 | |||
