1#!/bin/sh
2#-
3# Copyright (c) 2013, 2014 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 264027 2014-04-01 22:41:26Z gjb $
37#
38
39PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
40export PATH
41
42# The directory within which the release will be built.
43CHROOTDIR="/scratch"
44RELENGDIR="$(realpath $(dirname $(basename ${0})))"
--- 140 unchanged lines hidden (view full) ---
185 echo "Needs to be run as root."
186 exit 1
187fi
188
189set -e # Everything must succeed
190
191mkdir -p ${CHROOTDIR}/usr
192
193${VCSCMD} ${FORCE_SRC_KEY} ${SRCBRANCH} ${CHROOTDIR}/usr/src
194if [ -z "${NODOC}" ]; then
195 ${VCSCMD} ${DOCBRANCH} ${CHROOTDIR}/usr/doc
196fi
197if [ -z "${NOPORTS}" ]; then
198 ${VCSCMD} ${PORTBRANCH} ${CHROOTDIR}/usr/ports
199fi
200
201if [ -z "${CHROOTBUILD_SKIP}" ]; then
202 cd ${CHROOTDIR}/usr/src
203 env ${CHROOT_MAKEENV} make ${CHROOT_WMAKEFLAGS} buildworld
204 env ${CHROOT_MAKEENV} make ${CHROOT_IMAKEFLAGS} installworld \
205 DESTDIR=${CHROOTDIR}
--- 62 unchanged lines hidden ---
2#-
3# Copyright (c) 2013, 2014 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 264027 2014-04-01 22:41:26Z gjb $
37#
38
39PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
40export PATH
41
42# The directory within which the release will be built.
43CHROOTDIR="/scratch"
44RELENGDIR="$(realpath $(dirname $(basename ${0})))"
--- 140 unchanged lines hidden (view full) ---
185 echo "Needs to be run as root."
186 exit 1
187fi
188
189set -e # Everything must succeed
190
191mkdir -p ${CHROOTDIR}/usr
192
193${VCSCMD} ${FORCE_SRC_KEY} ${SRCBRANCH} ${CHROOTDIR}/usr/src
194if [ -z "${NODOC}" ]; then
195 ${VCSCMD} ${DOCBRANCH} ${CHROOTDIR}/usr/doc
196fi
197if [ -z "${NOPORTS}" ]; then
198 ${VCSCMD} ${PORTBRANCH} ${CHROOTDIR}/usr/ports
199fi
200
201if [ -z "${CHROOTBUILD_SKIP}" ]; then
202 cd ${CHROOTDIR}/usr/src
203 env ${CHROOT_MAKEENV} make ${CHROOT_WMAKEFLAGS} buildworld
204 env ${CHROOT_MAKEENV} make ${CHROOT_IMAKEFLAGS} installworld \
205 DESTDIR=${CHROOTDIR}
--- 62 unchanged lines hidden ---