summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/release.conf.sample12
-rwxr-xr-xrelease/release.sh8
-rw-r--r--share/man/man7/release.726
3 files changed, 42 insertions, 4 deletions
diff --git a/release/release.conf.sample b/release/release.conf.sample
index 54b3d5c..7eea656 100644
--- a/release/release.conf.sample
+++ b/release/release.conf.sample
@@ -56,6 +56,18 @@ PORTBRANCH="ports/head@rHEAD"
## means.
#CHROOTBUILD_SKIP=
+## Set to a non-empty value skip checkout or update of /usr/src in
+## the chroot. This is intended for use when /usr/src already exists.
+#SRC_UPDATE_SKIP=
+
+## Set to a non-empty value skip checkout or update of /usr/doc in
+## the chroot. This is intended for use when /usr/doc already exists.
+#DOC_UPDATE_SKIP=
+
+## Set to a non-empty value skip checkout or update of /usr/ports in
+## the chroot. This is intended for use when /usr/ports already exists.
+#PORTS_UPDATE_SKIP=
+
## Set to pass additional flags to make(1) for the build chroot setup, such
## as TARGET/TARGET_ARCH.
#CHROOT_MAKEENV=
diff --git a/release/release.sh b/release/release.sh
index 11df3fd..73b706e 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -190,11 +190,13 @@ set -e # Everything must succeed
mkdir -p ${CHROOTDIR}/usr
-${VCSCMD} ${FORCE_SRC_KEY} ${SRCBRANCH} ${CHROOTDIR}/usr/src
-if [ -z "${NODOC}" ]; then
+if [ -z "${SRC_UPDATE_SKIP}" ]; then
+ ${VCSCMD} ${FORCE_SRC_KEY} ${SRCBRANCH} ${CHROOTDIR}/usr/src
+fi
+if [ -z "${NODOC}" ] && [ -z "${DOC_UPDATE_SKIP}" ]; then
${VCSCMD} ${DOCBRANCH} ${CHROOTDIR}/usr/doc
fi
-if [ -z "${NOPORTS}" ]; then
+if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
${VCSCMD} ${PORTBRANCH} ${CHROOTDIR}/usr/ports
fi
diff --git a/share/man/man7/release.7 b/share/man/man7/release.7
index 1278a62..f3f897e 100644
--- a/share/man/man7/release.7
+++ b/share/man/man7/release.7
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 2, 2014
+.Dd April 11, 2014
.Dt RELEASE 7
.Os
.Sh NAME
@@ -272,6 +272,30 @@ build environment setup are skipped.
This is intended solely for cases where the
.Xr chroot 8
userland are provided by alternate means.
+.It Va SRC_UPDATE_SKIP
+Set to a non-empty value to prevent checkout or update of
+.Fa /usr/src
+within the
+.Xr chroot 8 .
+This is intended for use only when
+.Fa /usr/src
+is expected to exist by alternative means.
+.It Va DOC_UPDATE_SKIP
+Set to a non-empty value to prevent checkout or update of
+.Fa /usr/doc
+within the
+.Xr chroot 8 .
+This is intended for use only when
+.Fa /usr/doc
+is expected to exist by alternative means.
+.It Va PORTS_UPDATE_SKIP
+Set to a non-empty value to prevent checkout or update of
+.Fa /usr/ports
+within the
+.Xr chroot 8 .
+This is intended for use only when
+.Fa /usr/ports
+is expected to exist by alternative means.
.El
.Sh EMBEDDED BUILDS
The following
OpenPOWER on IntegriCloud