diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-29 01:36:12 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-29 01:36:12 (GMT) |
commit | c0333c05e761375c75a0c41e0a1441cc3c5c5fdf (patch) | |
tree | 7e7f686ffe0857fc9f1ce66f84d1db4d295ebbec | |
parent | 6500b8782fc0d179b6f69ccbf067fff168967edf (diff) | |
download | monitoring-plugins-c0333c05e761375c75a0c41e0a1441cc3c5c5fdf.tar.gz |
Fixed so goes to correct web area
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@565 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | tools/sfwebcron | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/sfwebcron b/tools/sfwebcron index 89a82ab..9824de8 100755 --- a/tools/sfwebcron +++ b/tools/sfwebcron | |||
@@ -1,7 +1,7 @@ | |||
1 | #! /bin/bash | 1 | #! /bin/bash |
2 | # sfwebcron | 2 | # sfwebcron |
3 | 3 | ||
4 | # To update the developers-guidelines.html and put in main area | 4 | # To update the developers-guidelines.html and put in html area |
5 | # | 5 | # |
6 | # Install in cron with something like: | 6 | # Install in cron with something like: |
7 | # 47 7 * * * $HOME/bin/sfwebcron | 7 | # 47 7 * * * $HOME/bin/sfwebcron |
@@ -11,8 +11,7 @@ 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="/home/groups/n/na/nagiosplug/htdocs/ton" | 14 | OUT="/home/groups/n/na/nagiosplug/htdocs" |
15 | DS=`date -u +%Y%m%d%H%M` | ||
16 | 15 | ||
17 | # Get latest dev guildelines | 16 | # Get latest dev guildelines |
18 | [[ ! -d $IN ]] && mkdir $IN | 17 | [[ ! -d $IN ]] && mkdir $IN |
@@ -24,9 +23,7 @@ cd nagiosplug/doc | |||
24 | cvs update | 23 | cvs update |
25 | 24 | ||
26 | # Is the dev guidelines updated? | 25 | # Is the dev guidelines updated? |
27 | touch now | ||
28 | make | 26 | make |
29 | if [[ developer-guidelines.html -nt now ]] ; then | 27 | if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; then |
30 | cp developer-guidelines.html developer-guidelines.sgml $OUT | 28 | cp developer-guidelines.html developer-guidelines.sgml $OUT |
31 | fi | 29 | fi |
32 | rm now | ||