release.sh (273080) | release.sh (278985) |
---|---|
1#!/bin/sh 2#- | 1#!/bin/sh 2#- |
3# Copyright (c) 2013, 2014 The FreeBSD Foundation | 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 9# under sponsorship from the FreeBSD Foundation. 10# 11# Redistribution and use in source and binary forms, with or without --- 16 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# | 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 9# under sponsorship from the FreeBSD Foundation. 10# 11# Redistribution and use in source and binary forms, with or without --- 16 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: stable/10/release/release.sh 273080 2014-10-14 12:23:44Z gjb $ | 36# $FreeBSD: stable/10/release/release.sh 278985 2015-02-19 03:57:47Z 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})))" --- 40 unchanged lines hidden (view full) --- 85WITH_DVD= 86WITH_COMPRESSED_IMAGES= 87 88# Set to non-empty value to build virtual machine images as part of 89# the release. 90WITH_VMIMAGES= 91WITH_COMPRESSED_VMIMAGES= 92 | 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})))" --- 40 unchanged lines hidden (view full) --- 85WITH_DVD= 86WITH_COMPRESSED_IMAGES= 87 88# Set to non-empty value to build virtual machine images as part of 89# the release. 90WITH_VMIMAGES= 91WITH_COMPRESSED_VMIMAGES= 92 |
93# Set to non-empty value to build virtual machine images for various 94# cloud providers as part of the release. 95WITH_CLOUDWARE= 96 |
|
93usage() { 94 echo "Usage: $0 [-c release.conf]" 95 exit 1 96} 97 98while getopts c: opt; do 99 case ${opt} in 100 c) --- 67 unchanged lines hidden (view full) --- 168fi 169CHROOT_MAKEENV="${CHROOT_MAKEENV} MAKEOBJDIRPREFIX=${CHROOTDIR}/tmp/obj" 170CHROOT_WMAKEFLAGS="${MAKE_FLAGS} ${WORLD_FLAGS} ${CONF_FILES}" 171CHROOT_IMAKEFLAGS="${CONF_FILES}" 172CHROOT_DMAKEFLAGS="${CONF_FILES}" 173RELEASE_WMAKEFLAGS="${MAKE_FLAGS} ${WORLD_FLAGS} ${ARCH_FLAGS} ${CONF_FILES}" 174RELEASE_KMAKEFLAGS="${MAKE_FLAGS} ${KERNEL_FLAGS} KERNCONF=\"${KERNEL}\" ${ARCH_FLAGS} ${CONF_FILES}" 175RELEASE_RMAKEFLAGS="${ARCH_FLAGS} KERNCONF=\"${KERNEL}\" ${CONF_FILES} \ | 97usage() { 98 echo "Usage: $0 [-c release.conf]" 99 exit 1 100} 101 102while getopts c: opt; do 103 case ${opt} in 104 c) --- 67 unchanged lines hidden (view full) --- 172fi 173CHROOT_MAKEENV="${CHROOT_MAKEENV} MAKEOBJDIRPREFIX=${CHROOTDIR}/tmp/obj" 174CHROOT_WMAKEFLAGS="${MAKE_FLAGS} ${WORLD_FLAGS} ${CONF_FILES}" 175CHROOT_IMAKEFLAGS="${CONF_FILES}" 176CHROOT_DMAKEFLAGS="${CONF_FILES}" 177RELEASE_WMAKEFLAGS="${MAKE_FLAGS} ${WORLD_FLAGS} ${ARCH_FLAGS} ${CONF_FILES}" 178RELEASE_KMAKEFLAGS="${MAKE_FLAGS} ${KERNEL_FLAGS} KERNCONF=\"${KERNEL}\" ${ARCH_FLAGS} ${CONF_FILES}" 179RELEASE_RMAKEFLAGS="${ARCH_FLAGS} KERNCONF=\"${KERNEL}\" ${CONF_FILES} \ |
176 ${DOCPORTS} WITH_DVD=${WITH_DVD} WITH_VMIMAGES=${WITH_VMIMAGES}" | 180 ${DOCPORTS} WITH_DVD=${WITH_DVD} WITH_VMIMAGES=${WITH_VMIMAGES} \ 181 WITH_CLOUDWARE=${WITH_CLOUDWARE}" |
177 178# Force src checkout if configured 179FORCE_SRC_KEY= 180if [ -n "${SRC_FORCE_CHECKOUT}" ]; then 181 FORCE_SRC_KEY="--force" 182fi 183 184if [ -z "${CHROOTDIR}" ]; then --- 96 unchanged lines hidden --- | 182 183# Force src checkout if configured 184FORCE_SRC_KEY= 185if [ -n "${SRC_FORCE_CHECKOUT}" ]; then 186 FORCE_SRC_KEY="--force" 187fi 188 189if [ -z "${CHROOTDIR}" ]; then --- 96 unchanged lines hidden --- |