summaryrefslogtreecommitdiffstats
path: root/tools/sfwebcron
diff options
context:
space:
mode:
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