mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-22 17:33:11 -05:00
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1760 f882894a-f735-0410-b71e-b25c423dba1c
35 lines
915 B
Bash
Executable file
35 lines
915 B
Bash
Executable file
#! /bin/bash
|
|
# sfwebcron
|
|
|
|
# To update the developers-guidelines.html and put in html area
|
|
#
|
|
# Install in cron with something like:
|
|
# 47 7 * * * $HOME/bin/sfwebcron
|
|
|
|
function die { echo $1; exit 1; }
|
|
|
|
# Set working variables
|
|
PROJECT=nagiosplug
|
|
IN=${HOME}/tmp_sfwebcron
|
|
OUT_SERVER="tonvoon@shell.sf.net"
|
|
OUT="/home/groups/n/na/nagiosplug/htdocs"
|
|
|
|
if [[ ! -e developer-guidelines.html.last ]] ; then
|
|
touch developer-guidelines.html.last
|
|
fi
|
|
|
|
# Get latest dev guildelines
|
|
[[ ! -d $IN ]] && mkdir $IN
|
|
cd $IN
|
|
if [[ ! -d doc ]] ; then
|
|
#cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
|
|
svn checkout http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk/doc doc
|
|
fi
|
|
cd doc
|
|
svn update
|
|
|
|
make
|
|
if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then
|
|
scp developer-guidelines.{html,sgml} $OUT_SERVER:$OUT
|
|
touch developer-guidelines.html.last
|
|
fi
|