diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-29 01:07:53 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-29 01:07:53 (GMT) |
commit | 6500b8782fc0d179b6f69ccbf067fff168967edf (patch) | |
tree | c5cbbe84ea3949b08515a75d42064baadfec6b4c | |
parent | d6b9172d65d6cb9b31704ab9353ca53083c07e51 (diff) | |
download | monitoring-plugins-6500b8782fc0d179b6f69ccbf067fff168967edf.tar.gz |
New tool to run on shell.sf.net to update the dev guidelines
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@564 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | tools/sfwebcron | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/sfwebcron b/tools/sfwebcron new file mode 100755 index 0000000..89a82ab --- /dev/null +++ b/tools/sfwebcron | |||
@@ -0,0 +1,32 @@ | |||
1 | #! /bin/bash | ||
2 | # sfwebcron | ||
3 | |||
4 | # To update the developers-guidelines.html and put in main area | ||
5 | # | ||
6 | # Install in cron with something like: | ||
7 | # 47 7 * * * $HOME/bin/sfwebcron | ||
8 | |||
9 | function die { echo $1; exit 1; } | ||
10 | |||
11 | # Set working variables | ||
12 | PROJECT=nagiosplug | ||
13 | IN=${HOME}/tmp_sfwebcron | ||
14 | OUT="/home/groups/n/na/nagiosplug/htdocs/ton" | ||
15 | DS=`date -u +%Y%m%d%H%M` | ||
16 | |||
17 | # Get latest dev guildelines | ||
18 | [[ ! -d $IN ]] && mkdir $IN | ||
19 | cd $IN | ||
20 | if [[ ! -d $PROJECT ]] ; then | ||
21 | cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs" | ||
22 | fi | ||
23 | cd nagiosplug/doc | ||
24 | cvs update | ||
25 | |||
26 | # Is the dev guidelines updated? | ||
27 | touch now | ||
28 | make | ||
29 | if [[ developer-guidelines.html -nt now ]] ; then | ||
30 | cp developer-guidelines.html developer-guidelines.sgml $OUT | ||
31 | fi | ||
32 | rm now | ||