This is the website build script being used on freefall. It is being
committed to the main (as opposed to ~wosch/cvs) CVS repository so that committers can modify it without the assistance of (but, of course, with the approval of) the webmaster and/or his lieutenant. It may also serve as a starting point for web site mirrors' update scripts. Requested by: nik Obtained from: freefall:~wosch/bin/myupdate
This commit is contained in:
parent
9217358863
commit
32847edb9a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=9558
1 changed files with 32 additions and 0 deletions
32
tools/webupdate
Normal file
32
tools/webupdate
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
# Copyright (c) 2001 Wolfram Schneider <wosch@FreeBSD.org>
|
||||
#
|
||||
# update the FreeBSD Web-Server from the CVS repository
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PATH=/bin:/usr/bin:/usr/local/bin; export PATH
|
||||
CVSROOT=/home/ncvs; export CVSROOT
|
||||
|
||||
build_dir=/usr/local/www/build
|
||||
logfile=log.make.`date '+%d'`
|
||||
|
||||
cd $build_dir || exit 2
|
||||
|
||||
cvs -qR update -dP www doc > $logfile 2>&1 || exit 2
|
||||
|
||||
# fresh checkout
|
||||
# rm -rf www doc || exit 2
|
||||
# cvs -QR co www doc || exit 2
|
||||
|
||||
cd www || exit 2
|
||||
cd en || exit 2
|
||||
|
||||
# force a rebuild every week at sunday
|
||||
case `date '+%u'` in 7) make clean > /dev/null 2>&1 ;; esac
|
||||
|
||||
time make all > $logfile 2>&1 &&
|
||||
time make DESTDIR=/usr/local/www install >> $logfile 2>&1 ||
|
||||
tail -50 $logfile
|
||||
|
Loading…
Reference in a new issue