aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-06-29 01:36:12 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-06-29 01:36:12 +0000
commitc0333c05e761375c75a0c41e0a1441cc3c5c5fdf (patch)
tree7e7f686ffe0857fc9f1ce66f84d1db4d295ebbec
parent6500b8782fc0d179b6f69ccbf067fff168967edf (diff)
downloadmonitoring-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-xtools/sfwebcron9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/sfwebcron b/tools/sfwebcron
index 89a82ab2..9824de85 100755
--- a/tools/sfwebcron
+++ b/tools/sfwebcron
@@ -1,7 +1,7 @@
#! /bin/bash
# sfwebcron
-# To update the developers-guidelines.html and put in main area
+# To update the developers-guidelines.html and put in html area
#
# Install in cron with something like:
# 47 7 * * * $HOME/bin/sfwebcron
@@ -11,8 +11,7 @@ function die { echo $1; exit 1; }
# Set working variables
PROJECT=nagiosplug
IN=${HOME}/tmp_sfwebcron
-OUT="/home/groups/n/na/nagiosplug/htdocs/ton"
-DS=`date -u +%Y%m%d%H%M`
+OUT="/home/groups/n/na/nagiosplug/htdocs"
# Get latest dev guildelines
[[ ! -d $IN ]] && mkdir $IN
@@ -24,9 +23,7 @@ cd nagiosplug/doc
cvs update
# Is the dev guidelines updated?
-touch now
make
-if [[ developer-guidelines.html -nt now ]] ; then
+if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; then
cp developer-guidelines.html developer-guidelines.sgml $OUT
fi
-rm now