From owner-svn-ports-head@freebsd.org Sun Jul 17 12:26:01 2016 Return-Path: Delivered-To: svn-ports-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 59F86B9A4FF; Sun, 17 Jul 2016 12:26:01 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 2CEE614A9; Sun, 17 Jul 2016 12:26:01 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6HCQ0mr097168; Sun, 17 Jul 2016 12:26:00 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6HCQ05Q097167; Sun, 17 Jul 2016 12:26:00 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201607171226.u6HCQ05Q097167@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Sun, 17 Jul 2016 12:26:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r418666 - head/Tools/scripts X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2016 12:26:01 -0000 Author: antoine Date: Sun Jul 17 12:26:00 2016 New Revision: 418666 URL: https://svnweb.freebsd.org/changeset/ports/418666 Log: MFportsindexbuild: - build INDEX-12 - remove no longer used scp/ssh Modified: head/Tools/scripts/tindex Modified: head/Tools/scripts/tindex ============================================================================== --- head/Tools/scripts/tindex Sun Jul 17 12:10:34 2016 (r418665) +++ head/Tools/scripts/tindex Sun Jul 17 12:26:00 2016 (r418666) @@ -23,26 +23,20 @@ REPORT_ADDRESS=root@localhost # Address for script errors ERROR_ADDRESS=root@localhost -# Where to scp the resulting indexes after build -SCP_DEST_HOST=root@localhost -SCP_DEST_TMP=/usr/local/www/ports/tmp -SCP_DEST_DIR=/usr/local/www/ports/ - # Location of ports tree and source trees export BASEDIR=/a/tindex export PORTSDIR=${BASEDIR}/ports export SRCDIR9=${BASEDIR}/src.9 export SRCDIR10=${BASEDIR}/src.10 export SRCDIR11=${BASEDIR}/src.11 +export SRCDIR12=${BASEDIR}/src.12 +export OUTDIR=${BASEDIR}/out # Target architecture if not set in the environment if [ "${ARCH}" = "" ]; then export ARCH=i386 fi -# SSH key to use for copying INDEXes to www host (if non-default) -export SSHKEY="-i /home/kris/.ssh/id_dsa-index" - # -------------------------------------------------------- blame() { @@ -110,14 +104,6 @@ checkfixed() { fi } -createtmpdir() { - TMPDIR=`ssh ${SCP_DEST_HOST} "mktemp -qd ${SCP_DEST_TMP}/tindex.XXXXXX"` - if [ $? -ne 0 ]; then - echo "$0: Can't create temp file, exiting..." - exit 1 - fi -} - # Sanitize the environment so that the indexes aren't customized by the # local machine settinge export __MAKE_CONF=/dev/null @@ -138,8 +124,11 @@ OSVERSION10=$(awk '/^#define[[:blank:]]_ ${SVN} -q up ${SRCDIR11}/sys/sys OSVERSION11=$(awk '/^#define[[:blank:]]__FreeBSD_version/ {print $3}' < ${SRCDIR11}/sys/sys/param.h) +${SVN} -q up ${SRCDIR12}/sys/sys +OSVERSION12=$(awk '/^#define[[:blank:]]__FreeBSD_version/ {print $3}' < ${SRCDIR12}/sys/sys/param.h) + cd ${PORTSDIR} -rm -f INDEX-9 INDEX-9.bz2 INDEX-10 INDEX-10.bz2 INDEX-11 INDEX-11.bz2 +rm -f INDEX-9 INDEX-9.bz2 INDEX-10 INDEX-10.bz2 INDEX-11 INDEX-11.bz2 INDEX-12 INDEX-12.bz2 (${SVN} up 2>1 ) > svn.log if grep -q ^C svn.log ; then (echo "svn update failed with conflicts:"; @@ -147,11 +136,13 @@ if grep -q ^C svn.log ; then exit 1 fi -for branch in 9.x 10.x 11.x; do +for branch in 9.x 10.x 11.x 12.x; do release=$(echo $branch | sed -e 's,.x,,') eval _osver=\$OSVERSION${release} + eval _uname_r="$(( ${_osver} / 100000 )).0-RELEASE" export OSVERSION=${_osver} + export UNAME_r=${_uname_r} if [ "${release}" = "9" ]; then MAKE_CMD=fmake @@ -166,10 +157,8 @@ for branch in 9.x 10.x 11.x; do fi checkfixed ${branch} - createtmpdir bzip2 -kf ${PORTSDIR}/INDEX-${release} - scp -q ${SSHKEY} ${PORTSDIR}/INDEX-${release} ${PORTSDIR}/INDEX-${release}.bz2 ${SCP_DEST_HOST}:${TMPDIR} || mail -s "Cannot copy INDEX-${release} to temp dir" ${ERROR_ADDRESS} - ssh ${SCP_DEST_HOST} "/bin/mv ${TMPDIR}/INDEX-${release} ${SCP_DEST_DIR}; /bin/mv ${TMPDIR}/INDEX-${release}.bz2 ${SCP_DEST_DIR}; rmdir ${TMPDIR}" || mail -s "Cannot move INDEX-${release} to final dir" ${ERROR_ADDRESS} + mv ${PORTSDIR}/INDEX-${release} ${PORTSDIR}/INDEX-${release}.bz2 ${OUTDIR} done # All indexes built successfully, clear the hook