[Nagiosplug-checkins] CVS: nagiosplug/tools sfwebcron,NONE,1.1

Ton Voon tonvoon at users.sourceforge.net
Sat Jun 28 18:08:11 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv21417

Added Files:
	sfwebcron 
Log Message:
New tool to run on shell.sf.net to update the dev guidelines


--- NEW FILE ---
#! /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 at 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





More information about the Commits mailing list