From ff50baf6dead1fa1e095ba7b8c3041c29a588172 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Tue, 24 Jul 2007 00:35:16 +0000 Subject: Updated to use svn instead of cvs git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1760 f882894a-f735-0410-b71e-b25c423dba1c --- tools/sfwebcron | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'tools/sfwebcron') diff --git a/tools/sfwebcron b/tools/sfwebcron index 9824de85..d836a0fd 100755 --- a/tools/sfwebcron +++ b/tools/sfwebcron @@ -11,19 +11,25 @@ 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 $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? make -if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; 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 -- cgit v1.2.3-74-g34f1