svn commit: r252224 - stable/9/release

Glen Barber gjb at FreeBSD.org
Wed Jun 26 00:38:40 UTC 2013


Author: gjb
Date: Wed Jun 26 00:38:40 2013
New Revision: 252224
URL: http://svnweb.freebsd.org/changeset/base/252224

Log:
  MFC r251652, r251811, r252101:
  
  r251652:
    Add new script to run release builds.  The script is heavily based upon
    the release/generate-release.sh script by nwhitehorn.
  
    This script can use optional configuration file to override defaults,
    making running multiple serialzied builds with different specific
    configurations or architecture-specific tunings quite easy.
  
    Sample overrideable options are included in the release.conf.sample
    file.
  
  r251811:
    Fix OSVERSION variable within PBUILD_FLAGS.
  
  r252101:
    If MAKE_CONF and/or SRC_CONF are set and not character devices,
    copy to chroot to use with release build.
  
  Approved by:	kib (mentor, implicit)

Added:
  stable/9/release/release.conf.sample
     - copied unchanged from r251652, head/release/release.conf.sample
  stable/9/release/release.sh
     - copied, changed from r251652, head/release/release.sh
Modified:
Directory Properties:
  stable/9/release/   (props changed)

Copied: stable/9/release/release.conf.sample (from r251652, head/release/release.conf.sample)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/9/release/release.conf.sample	Wed Jun 26 00:38:40 2013	(r252224, copy of r251652, head/release/release.conf.sample)
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+## Set the directory within which the release will be built.
+CHROOTDIR="/scratch"
+
+## Set the svn host.
+SVNROOT="svn://svn.FreeBSD.org"
+
+## Set the src/, ports/, and doc/ branches or tags.
+SRCBRANCH="base/head"
+DOCBRANCH="doc/head"
+PORTBRANCH="ports/head"
+
+## Set the src/, ports/, and doc/ revisions.
+SRCREVISION="-rHEAD"
+DOCREVISION="-rHEAD"
+PORTREVISION="-rHEAD"
+
+## Set to override the default target architecture.
+#TARGET="amd64"
+#TARGET_ARCH="amd64"
+#KERNEL="GENERIC"
+
+## Set to specify a custom make.conf and/or src.conf
+#MAKE_CONF="/etc/local/make.conf"
+#SRC_CONF="/etc/local/src.conf"
+
+## Set to use make(1) flags.
+#MAKE_FLAGS="-s"
+
+## Set to use world- and kernel-specific make(1) flags.
+#WORLD_FLAGS="-j $(sysctl -n hw.ncpu)"
+#KERNEL_FLAGS="-j $(expr $(sysctl -n hw.ncpu) / 2)"
+
+## Set miscellaneous 'make release' settings.
+#NODOC=
+#NOPORTS=
+#RELSTRING=

Copied and modified: stable/9/release/release.sh (from r251652, head/release/release.sh)
==============================================================================
--- head/release/release.sh	Wed Jun 12 13:15:28 2013	(r251652, copy source)
+++ stable/9/release/release.sh	Wed Jun 26 00:38:40 2013	(r252224)
@@ -165,12 +165,23 @@ build_doc_ports() {
 	## Trick the ports 'run-autotools-fixup' target to do the right thing.
 	_OSVERSION=$(sysctl -n kern.osreldate)
 	if [ -d ${CHROOTDIR}/usr/doc ] && [ "x${NODOC}" != "x" ]; then
-		PBUILD_FLAGS="OSVERSION=${OSVERSION} WITHOUT_JADETEX=yes BATCH=yes"
+		PBUILD_FLAGS="OSVERSION=${_OSVERSION} WITHOUT_JADETEX=yes BATCH=yes"
 		chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \
 			${PBUILD_FLAGS} install
 	fi
 }
 
+# If MAKE_CONF and/or SRC_CONF are set and not character devices (/dev/null),
+# copy them to the chroot.
+if [ -e ${MAKE_CONF} ] && [ ! -c ${MAKE_CONF} ]; then
+	mkdir -p ${CHROOTDIR}/$(dirname ${MAKE_CONF})
+	cp ${MAKE_CONF} ${CHROOTDIR}/${MAKE_CONF}
+fi
+if [ -e ${SRC_CONF} ] && [ ! -c ${SRC_CONF} ]; then
+	mkdir -p ${CHROOTDIR}/$(dirname ${SRC_CONF})
+	cp ${SRC_CONF} ${CHROOTDIR}/${SRC_CONF}
+fi
+
 if [ -d ${CHROOTDIR}/usr/ports ]; then
 	cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf
 	build_doc_ports ${CHROOTDIR}


More information about the svn-src-stable-9 mailing list