diff --git a/tools/sfwebcron b/tools/sfwebcron
index 89a82ab2ded50b3d0bc28cbc05985e5f8a0f5c3e..d836a0fdaca63b1ec108c1567c2c1eae43666370 100755 (executable)
--- a/tools/sfwebcron
+++ b/tools/sfwebcron
#! /bin/bash
# sfwebcron
-# To update the developers-guidelines.html and put in main area
+# To update the developers-guidelines.html and put in html area
#
# Install in cron with something like:
# 47 7 * * * $HOME/bin/sfwebcron
# Set working variables
PROJECT=nagiosplug
IN=${HOME}/tmp_sfwebcron
-OUT="/home/groups/n/na/nagiosplug/htdocs/ton"
-DS=`date -u +%Y%m%d%H%M`
+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 $PROJECT ]] ; then
- cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
+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 nagiosplug/doc
-cvs update
+cd doc
+svn update
-# Is the dev guidelines updated?
-touch now
make
-if [[ developer-guidelines.html -nt now ]] ; then
- cp developer-guidelines.html developer-guidelines.sgml $OUT
+if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then
+ scp developer-guidelines.{html,sgml} $OUT_SERVER:$OUT
+ touch developer-guidelines.html.last
fi
-rm now