head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.06.06.22.43.29;	author dd;	state dead;
branches;
next	1.1;

1.1
date	2001.06.04.05.02.30;	author dd;	state Exp;
branches;
next	;


desc
@@


1.2
log
@This file is moving to www/tools since that's a more orthogonal place
for it (we have src/tools and ports/Tools, after all).
@
text
@#!/bin/sh
# Copyright (c) 2001 Wolfram Schneider <wosch@@FreeBSD.org>
#
# update the FreeBSD Web-Server from the CVS repository
#
# $FreeBSD: www/share/bin/webupdate,v 1.1 2001/06/04 05:02:30 dd Exp $
#

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

@


1.1
log
@This is the website build script being used on freefall.  It is being
committed to the main 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.

Requested by:	nik
Obtained from:	freefall:~wosch/bin/myupdate
@
text
@d6 1
a6 1
# $FreeBSD$
@

