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 264343 2014-04-11 13:48:45Z 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 |
193if [ -z "${SRC_UPDATE_SKIP}" ]; then 194 ${VCSCMD} ${FORCE_SRC_KEY} ${SRCBRANCH} ${CHROOTDIR}/usr/src 195fi 196if [ -z "${NODOC}" ] && [ -z "${DOC_UPDATE_SKIP}" ]; then |
197 ${VCSCMD} ${DOCBRANCH} ${CHROOTDIR}/usr/doc 198fi |
199if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then |
200 ${VCSCMD} ${PORTBRANCH} ${CHROOTDIR}/usr/ports 201fi 202 203if [ -z "${CHROOTBUILD_SKIP}" ]; then 204 cd ${CHROOTDIR}/usr/src 205 env ${CHROOT_MAKEENV} make ${CHROOT_WMAKEFLAGS} buildworld 206 env ${CHROOT_MAKEENV} make ${CHROOT_IMAKEFLAGS} installworld \ 207 DESTDIR=${CHROOTDIR} --- 62 unchanged lines hidden --- |