From owner-svn-doc-head@freebsd.org Wed Jun 24 15:41:34 2015 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4BA491589F; Wed, 24 Jun 2015 15:41:34 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9C18125C; Wed, 24 Jun 2015 15:41:34 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5OFfYft016168; Wed, 24 Jun 2015 15:41:34 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5OFfYTC016166; Wed, 24 Jun 2015 15:41:34 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201506241541.t5OFfYTC016166@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Wed, 24 Jun 2015 15:41:34 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46863 - head/share/tools X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2015 15:41:35 -0000 Author: gjb Date: Wed Jun 24 15:41:33 2015 New Revision: 46863 URL: https://svnweb.freebsd.org/changeset/doc/46863 Log: Update webupdate and webupdate.wrapper to fix several issues. In webupdate: - Output the ports tree checkout to the log file. - Set the depth of ports/Mk/ to 'infinity', since its contents are needed for 'fetchindex' to work properly. - Reduce redundant explicit paths to use the value of 'subdirs'. In webupdate.wrapper: - Set PORTSDIR to the actual path that is being updated by webupdate. - If PINDEX_OVERRIDE is set, remove the INDEX-INDEXNUM file. Approved by: doceng (implicit) Sponsored by: The FreeBSD Foundation Modified: head/share/tools/webupdate head/share/tools/webupdate.wrapper Modified: head/share/tools/webupdate ============================================================================== --- head/share/tools/webupdate Wed Jun 24 06:27:03 2015 (r46862) +++ head/share/tools/webupdate Wed Jun 24 15:41:33 2015 (r46863) @@ -138,12 +138,11 @@ if [ $cond ]; then svn co $SVNROOT/base/stable/9/share/man/man4 relnotes9/man4 >> $LOGFILE 2>&1 || exit 2; svn co $SVNROOT/base/stable/8/release/doc relnotes8/doc >> $LOGFILE 2>&1 || exit 2; svn co $SVNROOT/base/stable/8/share/man/man4 relnotes8/man4 >> $LOGFILE 2>&1 || exit 2; - svn co --depth immediates $SVNROOT/ports/head ports + svn co --depth immediates $SVNROOT/ports/head ports >> $LOGFILE 2>&1 || exit 2 + svn up --set-depth infinity ports/Mk >> $LOGFILE 2>&1 || exit 2 rm -f $BUILDDIR/fullbuild-clean.flag else - for dir in head relnotes/doc relnotes/man4 ports relnotes10/doc \ - relnotes10/man4 relnotes9/doc relnotes9/man4 relnotes8/doc \ - relnotes8/man4; do + for dir in ${subtrees}; do svn cleanup $dir >> $LOGFILE 2>&1 || exit 2; svn update --accept theirs-full $dir >> $LOGFILE 2>&1 || exit 2; done Modified: head/share/tools/webupdate.wrapper ============================================================================== --- head/share/tools/webupdate.wrapper Wed Jun 24 06:27:03 2015 (r46862) +++ head/share/tools/webupdate.wrapper Wed Jun 24 15:41:33 2015 (r46863) @@ -15,7 +15,7 @@ RSYNC_FLAGS="-avH" GEN_INDEX=yes WEBMAILTO=freebsd-doc@FreeBSD.org FLAGDIR=/usr/local/www/build -: ${PORTSDIR:=/usr/local/www/ports}; export PORTSDIR +: ${PORTSDIR:=/usr/local/www/build/ports}; export PORTSDIR : ${INDEXNUM:=$(make -C ${PORTSDIR} -V OSREL)} : ${PINDEX_OVERRIDE:=${PORTSDIR}/INDEX-${INDEXNUM%%.*}} export USER=www-data @@ -25,6 +25,7 @@ export WITH_PORTS_GROWTH=YES export WITH_PRSTATS=YES if [ ! -e "${PINDEX_OVERRIDE}" ]; then + [ -e ${PORTSDIR}/INDEX-${INDEXNUM} ] && rm -f ${PORTSDIR}/INDEX-${INDEXNUM} make -C ${PORTSDIR} fetchindex fi