diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/sfwebcron | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/tools/sfwebcron b/tools/sfwebcron index c270cef2..0f31fcfb 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 | 
| 13 | PROJECT=nagiosplug | 13 | PROJECT=nagiosplug | 
| 14 | IN=${HOME}/sfwebcron | 14 | IN=${HOME}/sfwebcron | 
| 15 | PROBE="developer-guidelines.html.last" | ||
| 15 | OUT_SERVER="tonvoon@frs.sourceforge.net" | 16 | OUT_SERVER="tonvoon@frs.sourceforge.net" | 
| 16 | OUT_PATH="/home/groups/n/na/nagiosplug/htdocs" | 17 | OUT_PATH="/home/groups/n/na/nagiosplug/htdocs" | 
| 17 | 18 | ||
| 18 | if [[ ! -e developer-guidelines.html.last ]] ; then | ||
| 19 | touch developer-guidelines.html.last | ||
| 20 | fi | ||
| 21 | |||
| 22 | # Get latest dev guildelines | 19 | # Get latest dev guildelines | 
| 23 | [[ ! -d $IN ]] && mkdir $IN | 20 | [[ ! -d $IN ]] && mkdir $IN | 
| 24 | cd $IN | 21 | cd $IN | 
| 25 | if [[ ! -d nagios-plugins ]] ; then | 22 | if [[ ! -d nagios-plugins ]] | 
| 23 | then | ||
| 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 | 
| 27 | fi | 25 | fi | 
| 28 | cd nagios-plugins/doc | 26 | cd nagios-plugins/doc | 
| 29 | git pull | 27 | git pull | 
| 30 | 28 | ||
| 31 | make | 29 | make | 
| 32 | if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then | 30 | if [[ ! -e $PROBE || developer-guidelines.html -nt $PROBE ]] | 
| 31 | then | ||
| 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 | 
| 35 | fi | 34 | fi | 
| 36 | 35 | ||
