aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-06 15:41:43 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-06 15:41:43 +0000
commita03128832c6c71a3544f1c5ef0b15a17122c8f51 (patch)
tree1b58c4ffd973657457614ed46884b786559941b1 /release/release.sh
parent8501ddab551e23d9595e569a5facf5451545ce24 (diff)
downloadsrc-a03128832c6c71a3544f1c5ef0b15a17122c8f51.tar.gz
src-a03128832c6c71a3544f1c5ef0b15a17122c8f51.zip
In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.
Move the port build for EMBEDDEDPORTS (if set) from arm/release.sh to release.sh. Remove arm/release.sh. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282553
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/release.sh b/release/release.sh
index 2db5cf347acf..8ff974d68af3 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -257,7 +257,7 @@ extra_chroot_setup() {
if [ -d ${CHROOTDIR}/usr/ports ]; then
# Trick the ports 'run-autotools-fixup' target to do the right
# thing.
- _OSVERSION=$(sysctl -n kern.osreldate)
+ _OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U)
REVISION=$(chroot ${CHROOTDIR} make -C /usr/src/release -V REVISION)
BRANCH=$(chroot ${CHROOTDIR} make -C /usr/src/release -V BRANCH)
UNAME_r=${REVISION}-${BRANCH}
@@ -271,6 +271,13 @@ extra_chroot_setup() {
fi
fi
+ if [ ! -z "${EMBEDDEDPORTS}" ]; then
+ for _PORT in ${EMBEDDEDPORTS}; do
+ eval chroot ${CHROOTDIR} make -C /usr/ports/${_PORT} \
+ BATCH=1 FORCE_PKG_REGISTER=1 install clean distclean
+ done
+ fi
+
return 0
} # extra_chroot_setup()