diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2007-07-24 00:35:16 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2007-07-24 00:35:16 +0000 |
commit | ff50baf6dead1fa1e095ba7b8c3041c29a588172 (patch) | |
tree | 5f03bd4cbd6eed882d6ffde77008eb012f8dd90f /tools/sfwebcron | |
parent | 475ee7b55a24ed6a17e0bb5ef762560ebb0ab152 (diff) | |
download | monitoring-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-x | tools/sfwebcron | 20 |
1 files changed, 13 insertions, 7 deletions
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; } | |||
11 | # Set working variables | 11 | # Set working variables |
12 | PROJECT=nagiosplug | 12 | PROJECT=nagiosplug |
13 | IN=${HOME}/tmp_sfwebcron | 13 | IN=${HOME}/tmp_sfwebcron |
14 | OUT_SERVER="tonvoon@shell.sf.net" | ||
14 | OUT="/home/groups/n/na/nagiosplug/htdocs" | 15 | OUT="/home/groups/n/na/nagiosplug/htdocs" |
15 | 16 | ||
17 | if [[ ! -e developer-guidelines.html.last ]] ; then | ||
18 | touch developer-guidelines.html.last | ||
19 | fi | ||
20 | |||
16 | # Get latest dev guildelines | 21 | # Get latest dev guildelines |
17 | [[ ! -d $IN ]] && mkdir $IN | 22 | [[ ! -d $IN ]] && mkdir $IN |
18 | cd $IN | 23 | cd $IN |
19 | if [[ ! -d $PROJECT ]] ; then | 24 | if [[ ! -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 | ||
21 | fi | 27 | fi |
22 | cd nagiosplug/doc | 28 | cd doc |
23 | cvs update | 29 | svn update |
24 | 30 | ||
25 | # Is the dev guidelines updated? | ||
26 | make | 31 | make |
27 | if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; then | 32 | if [[ 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 | ||
29 | fi | 35 | fi |