1#!/bin/sh
2#-
3# Copyright (c) 2013-2015 The FreeBSD Foundation
4# Copyright (c) 2013 Glen Barber
5# Copyright (c) 2011 Nathan Whitehorn
6# All rights reserved.
7#
8# Portions of this software were developed by Glen Barber
--- 19 unchanged lines hidden (view full) ---
28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30# SUCH DAMAGE.
31#
32# release.sh: check out source trees, and build release components with
33# totally clean, fresh trees.
34# Based on release/generate-release.sh written by Nathan Whitehorn
35#
36# $FreeBSD: releng/11.0/release/release.sh 304015 2016-08-12 19:26:12Z gjb $
37#
38
39export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
40
41VERSION=2
42
43# Prototypes that can be redefined per-chroot or per-target.
44load_chroot_env() { }
--- 237 unchanged lines hidden (view full) ---
282 chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \
283 ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \
284 FORCE_PKG_REGISTER=1 \
285 install clean distclean
286 fi
287 fi
288
289 if [ ! -z "${EMBEDDEDPORTS}" ]; then
290 _OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U)
291 REVISION=$(chroot ${CHROOTDIR} make -C /usr/src/release -V REVISION)
292 BRANCH=$(chroot ${CHROOTDIR} make -C /usr/src/release -V BRANCH)
293 PBUILD_FLAGS="OSVERSION=${_OSVERSION} BATCH=yes"
294 PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}"
295 PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}"
296 for _PORT in ${EMBEDDEDPORTS}; do
297 eval chroot ${CHROOTDIR} make -C /usr/ports/${_PORT} \
298 FORCE_PKG_REGISTER=1 ${PBUILD_FLAGS} install clean distclean
299 done
300 fi
301
302 buildenv_setup
303
304 return 0
305} # extra_chroot_setup()
306
--- 113 unchanged lines hidden ---
2#-
3# Copyright (c) 2013-2015 The FreeBSD Foundation
4# Copyright (c) 2013 Glen Barber
5# Copyright (c) 2011 Nathan Whitehorn
6# All rights reserved.
7#
8# Portions of this software were developed by Glen Barber
--- 19 unchanged lines hidden (view full) ---
28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30# SUCH DAMAGE.
31#
32# release.sh: check out source trees, and build release components with
33# totally clean, fresh trees.
34# Based on release/generate-release.sh written by Nathan Whitehorn
35#
36# $FreeBSD: releng/11.0/release/release.sh 304015 2016-08-12 19:26:12Z gjb $
37#
38
39export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
40
41VERSION=2
42
43# Prototypes that can be redefined per-chroot or per-target.
44load_chroot_env() { }
--- 237 unchanged lines hidden (view full) ---
282 chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \
283 ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \
284 FORCE_PKG_REGISTER=1 \
285 install clean distclean
286 fi
287 fi
288
289 if [ ! -z "${EMBEDDEDPORTS}" ]; then
290 _OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U)
291 REVISION=$(chroot ${CHROOTDIR} make -C /usr/src/release -V REVISION)
292 BRANCH=$(chroot ${CHROOTDIR} make -C /usr/src/release -V BRANCH)
293 PBUILD_FLAGS="OSVERSION=${_OSVERSION} BATCH=yes"
294 PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}"
295 PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}"
296 for _PORT in ${EMBEDDEDPORTS}; do
297 eval chroot ${CHROOTDIR} make -C /usr/ports/${_PORT} \
298 FORCE_PKG_REGISTER=1 ${PBUILD_FLAGS} install clean distclean
299 done
300 fi
301
302 buildenv_setup
303
304 return 0
305} # extra_chroot_setup()
306
--- 113 unchanged lines hidden ---