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: head/release/release.sh 281802 2015-04-21 00:48:35Z gjb $
37#
38
39PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
40export PATH
41
42# Prototypes that can be redefined per-chroot or per-target.
43load_chroot_env() { }
44load_target_env() { }
45buildenv_setup() { }
46
47# The directory within which the release will be built.
48CHROOTDIR="/scratch"
49RELENGDIR="$(realpath $(dirname $(basename ${0})))"
50
51# The default version control system command to obtain the sources.
52VCSCMD="svn checkout"
53
--- 221 unchanged lines hidden (view full) ---
275 PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}"
276 PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}"
277 chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \
278 ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \
279 install clean distclean
280 fi
281fi
282
283buildenv_setup
284load_target_env
285eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} buildworld
286eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_KMAKEFLAGS} buildkernel
287eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
288 release
289eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
290 install DESTDIR=/R WITH_COMPRESSED_IMAGES=${WITH_COMPRESSED_IMAGES} \
291 WITH_COMPRESSED_VMIMAGES=${WITH_COMPRESSED_VMIMAGES}
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: head/release/release.sh 281802 2015-04-21 00:48:35Z gjb $
37#
38
39PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
40export PATH
41
42# Prototypes that can be redefined per-chroot or per-target.
43load_chroot_env() { }
44load_target_env() { }
45buildenv_setup() { }
46
47# The directory within which the release will be built.
48CHROOTDIR="/scratch"
49RELENGDIR="$(realpath $(dirname $(basename ${0})))"
50
51# The default version control system command to obtain the sources.
52VCSCMD="svn checkout"
53
--- 221 unchanged lines hidden (view full) ---
275 PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}"
276 PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}"
277 chroot ${CHROOTDIR} make -C /usr/ports/textproc/docproj \
278 ${PBUILD_FLAGS} OPTIONS_UNSET="FOP IGOR" \
279 install clean distclean
280 fi
281fi
282
283buildenv_setup
284load_target_env
285eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} buildworld
286eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_KMAKEFLAGS} buildkernel
287eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
288 release
289eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
290 install DESTDIR=/R WITH_COMPRESSED_IMAGES=${WITH_COMPRESSED_IMAGES} \
291 WITH_COMPRESSED_VMIMAGES=${WITH_COMPRESSED_VMIMAGES}