diff options
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 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 |
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 |