mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-23 01:42:10 -05:00
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@565 f882894a-f735-0410-b71e-b25c423dba1c
29 lines
707 B
Bash
Executable file
29 lines
707 B
Bash
Executable file
#! /bin/bash
|
|
# sfwebcron
|
|
|
|
# To update the developers-guidelines.html and put in html 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"
|
|
|
|
# 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?
|
|
make
|
|
if [[ developer-guidelines.html -nt $OUT/developer-guidelines.html ]] ; then
|
|
cp developer-guidelines.html developer-guidelines.sgml $OUT
|
|
fi
|