From owner-svn-doc-all@FreeBSD.ORG Mon Jun 4 02:48:57 2012 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D9A90106564A; Mon, 4 Jun 2012 02:48:57 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AB9018FC19; Mon, 4 Jun 2012 02:48:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q542mvEw000118; Mon, 4 Jun 2012 02:48:57 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q542mve4000116; Mon, 4 Jun 2012 02:48:57 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201206040248.q542mve4000116@svn.freebsd.org> From: Hiroki Sato Date: Mon, 4 Jun 2012 02:48:57 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r38974 - head/share/tools X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 02:48:57 -0000 Author: hrs Date: Mon Jun 4 02:48:57 2012 New Revision: 38974 URL: http://svn.freebsd.org/changeset/doc/38974 Log: Sync with the latest version on www.FreeBSD.org. Modified: head/share/tools/webupdate Modified: head/share/tools/webupdate ============================================================================== --- head/share/tools/webupdate Mon Jun 4 02:27:26 2012 (r38973) +++ head/share/tools/webupdate Mon Jun 4 02:48:57 2012 (r38974) @@ -47,12 +47,15 @@ DEFAULT_PATH=/bin:/usr/bin:/usr/local/bi DEFAULT_CVSROOT=/home/ncvs; DEFAULT_SVNROOT=svn://svn.FreeBSD.org/doc/head DEFAULT_BUILDDIR=/usr/local/www/build; -DEFAULT_LOGDIR=/usr/local/www/build/log; +#DEFAULT_LOGDIR=/usr/local/www/build/log; +DEFAULT_LOGDIR=/usr/local/www/logs/build; DEFAULT_DESTDIR=/usr/local/www; -DEFAULT_LOGFILE=log.make.`date '+%d.%H'`; +DEFAULT_LOGFILE=webbuild.log DEFAULT_BUILDARGS=''; DEFAULT_INSTARGS=''; DEFAULT_WEBMAILTO=freebsd-doc; +#DEFAULT_WEBMAILTO=simon; +#DEFAULT_WEBMAILTO=hrs; # # Variable setup. @@ -98,16 +101,21 @@ fi umask 002 cd $BUILDDIR || exit 1; +# We use newsyslog now... mkdir -p $LOGDIR -rm -f $LOGFILE 2>/dev/null; -touch $LOGFILE; +#rm -f $LOGFILE 2>/dev/null; +#touch $LOGFILE; + +buildstart=`date +%s` +echo Build started `date` >> ${LOGFILE} # XXX If one of the directories in $subtrees doesn't exist, *all* of # them will be wiped and checked out again. This should only happen # if something went terribly wrong, or if there's a new entry in # $subtrees, so I (dd) don't plan on fixing it; there's no sense in # optimizing something that should only happen twice a year (if that). -cond="X`date '+%u'` = X7 `echo $subtrees | sed -E 's/([^ ]*)/-o ! -d \1/g'`"; +#cond="X`date '+%u'` = X7 `echo $subtrees | sed -E 's/([^ ]*)/-o ! -d \1/g'`"; +cond="-e $BUILDDIR/fullbuild.flag `echo $subtrees | sed -E 's/([^ ]*)/-o ! -d \1/g'`"; if [ $cond ]; then # Remove the old copies. rm -Rf $subtrees 2>/dev/null; @@ -122,7 +130,9 @@ if [ $cond ]; then $LOGFILE 2>&1 || exit 2; cvs -qR checkout -Pd relnotes/man4 src/share/man/man4 >> \ $LOGFILE 2>&1 || exit 2; + rm -f $BUILDDIR/fullbuild.flag else + svn cleanup head >> $LOGFILE 2>&1 || exit 2; svn update head >> $LOGFILE 2>&1 || exit 2; cvs -qR update -dP $subtrees >> $LOGFILE 2>&1 || exit 2; fi @@ -138,7 +148,12 @@ time make ${BUILDARGS} all >> $LOGFILE 2 mail -s "FreeBSD web build failed on `hostname`" $WEBMAILTO; exit 3) || exit 3; -gzip -f $LOGFILE -find $LOGDIR -mtime +60 -print0 | perl -n0e unlink +# simon@ 20110116 - for now we use newsyslog... +#gzip -f $LOGFILE +#find $LOGDIR -mtime +60 -print0 | perl -n0e unlink + +buildstop=`date +%s` +buildd=$(($buildstop - $buildstart)) +echo "Build ended `date` (${buildd}s)" >> ${LOGFILE} exit 0;