summaryrefslogtreecommitdiffstats
path: root/tools/sfwebcron
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-07-24 00:35:16 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2007-07-24 00:35:16 (GMT)
commitff50baf6dead1fa1e095ba7b8c3041c29a588172 (patch)
tree5f03bd4cbd6eed882d6ffde77008eb012f8dd90f /tools/sfwebcron
parent475ee7b55a24ed6a17e0bb5ef762560ebb0ab152 (diff)
downloadmonitoring-plugins-ff50baf6dead1fa1e095ba7b8c3041c29a588172.tar.gz
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
Diffstat (limited to 'tools/sfwebcron')
-rwxr-xr-xtools/sfwebcron20
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/sfwebcron b/tools/sfwebcron
index 9824de8..d836a0f 100755
--- a/tools/sfwebcron
+++ b/tools/sfwebcron
@@ -11,19 +11,25 @@ function die { echo $1; exit 1; }
11# Set working variables 11# Set working variables
12PROJECT=nagiosplug 12PROJECT=nagiosplug
13IN=${HOME}/tmp_sfwebcron 13IN=${HOME}/tmp_sfwebcron
14OUT_SERVER="tonvoon@shell.sf.net"
14OUT="/home/groups/n/na/nagiosplug/htdocs" 15OUT="/home/groups/n/na/nagiosplug/htdocs"
15 16
17if [[ ! -e developer-guidelines.html.last ]] ; then
18 touch developer-guidelines.html.last
19fi
20
16# Get latest dev guildelines 21# Get latest dev guildelines
17[[ ! -d $IN ]] && mkdir $IN 22[[ ! -d $IN ]] && mkdir $IN
18cd $IN 23cd $IN
19if [[ ! -d $PROJECT ]] ; then 24if [[ ! -d doc ]] ; then
20 cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs" 25 #cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
26 svn checkout http://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk/doc doc
21fi 27fi
22cd nagiosplug/doc 28cd doc
23cvs update 29svn update
24 30
25# Is the dev guidelines updated?
26make 31make
27if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; then 32if [[ developer-guidelines.html -nt developer-guidelines.html.last ]] ; then
28 cp developer-guidelines.html developer-guidelines.sgml $OUT 33 scp developer-guidelines.{html,sgml} $OUT_SERVER:$OUT
34 touch developer-guidelines.html.last
29fi 35fi