mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-13 18:50:01 -04:00
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
This commit is contained in:
parent
d6b9172d65
commit
6500b8782f
1 changed files with 32 additions and 0 deletions
32
tools/sfwebcron
Executable file
32
tools/sfwebcron
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#! /bin/bash
|
||||
# sfwebcron
|
||||
|
||||
# To update the developers-guidelines.html and put in main area
|
||||
#
|
||||
# Install in cron with something like:
|
||||
# 47 7 * * * $HOME/bin/sfwebcron
|
||||
|
||||
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`
|
||||
|
||||
# Get latest dev guildelines
|
||||
[[ ! -d $IN ]] && mkdir $IN
|
||||
cd $IN
|
||||
if [[ ! -d $PROJECT ]] ; then
|
||||
cvs -z3 -d:pserver:anonymous@cvs1:/cvsroot/nagiosplug co nagiosplug || die "Cannot cvs"
|
||||
fi
|
||||
cd nagiosplug/doc
|
||||
cvs update
|
||||
|
||||
# Is the dev guidelines updated?
|
||||
touch now
|
||||
make
|
||||
if [[ developer-guidelines.html -nt now ]] ; then
|
||||
cp developer-guidelines.html developer-guidelines.sgml $OUT
|
||||
fi
|
||||
rm now
|
||||
Loading…
Reference in a new issue