aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
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()