summaryrefslogtreecommitdiffstats
path: root/release/release.sh
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2014-04-14 03:57:45 +0000
committergjb <gjb@FreeBSD.org>2014-04-14 03:57:45 +0000
commitbfa777d36fc90a10299c7dfda42c27512bbdb0a0 (patch)
treede4b0e0effef9485687cddc4308d570f3917d941 /release/release.sh
parent4f557eb9380e350e00df186d627969b28ea499a8 (diff)
downloadFreeBSD-src-bfa777d36fc90a10299c7dfda42c27512bbdb0a0.zip
FreeBSD-src-bfa777d36fc90a10299c7dfda42c27512bbdb0a0.tar.gz
MFC r264343:
Add SRC_UPDATE_SKIP, DOC_UPDATE_SKIP, and PORTS_UPDATE_SKIP variables. These are intended to allow bypassing the 'svn co /usr/{src,doc,ports}' step in the chroot when the tree exists from external means. The use case here is that /usr/src, /usr/doc, and /usr/ports in the chroot exist as result of zfs dataset clones, so it is possible (and happens quite often) that the included distributions may not be consistent. (This is not the case for -RELEASE builds, but does happen for snapshot builds.) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh8
1 files changed, 5 insertions, 3 deletions
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
OpenPOWER on IntegriCloud