release.sh (1709ccf9d38a5753192420ce5fccd93b04ce4d07) release.sh (cbc0e08a7be92a8a6caf19f900239107d58ddadc)
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

--- 69 unchanged lines hidden (view full) ---

78
79# Set to non-empty value to disable checkout of doc/ and/or ports/. Disabling
80# ports/ checkout also forces NODOC to be set.
81NODOC=
82NOPORTS=
83
84# Set to non-empty value to build dvd1.iso as part of the release.
85WITH_DVD=
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

--- 69 unchanged lines hidden (view full) ---

78
79# Set to non-empty value to disable checkout of doc/ and/or ports/. Disabling
80# ports/ checkout also forces NODOC to be set.
81NODOC=
82NOPORTS=
83
84# Set to non-empty value to build dvd1.iso as part of the release.
85WITH_DVD=
86WITH_COMPRESSED_IMAGES=
86
87usage() {
88 echo "Usage: $0 [-c release.conf]"
89 exit 1
90}
91
92while getopts c: opt; do
93 case ${opt} in

--- 29 unchanged lines hidden (view full) ---

123PORTBRANCH="${SVNROOT}${PORTBRANCH}"
124
125if [ -n "${EMBEDDEDBUILD}" ]; then
126 if [ -z "${XDEV}" ] || [ -z "${XDEV_ARCH}" ]; then
127 echo "ERROR: XDEV and XDEV_ARCH must be set in ${RELEASECONF}."
128 exit 1
129 fi
130 WITH_DVD=
87
88usage() {
89 echo "Usage: $0 [-c release.conf]"
90 exit 1
91}
92
93while getopts c: opt; do
94 case ${opt} in

--- 29 unchanged lines hidden (view full) ---

124PORTBRANCH="${SVNROOT}${PORTBRANCH}"
125
126if [ -n "${EMBEDDEDBUILD}" ]; then
127 if [ -z "${XDEV}" ] || [ -z "${XDEV_ARCH}" ]; then
128 echo "ERROR: XDEV and XDEV_ARCH must be set in ${RELEASECONF}."
129 exit 1
130 fi
131 WITH_DVD=
132 WITH_COMPRESSED_IMAGES=
131 NODOC=yes
132fi
133
134# If PORTS is set and NODOC is unset, force NODOC=yes because the ports tree
135# is required to build the documentation set.
136if [ -n "${NOPORTS}" ] && [ -z "${NODOC}" ]; then
137 echo "*** NOTICE: Setting NODOC=1 since ports tree is required"
138 echo " and NOPORTS is set."

--- 118 unchanged lines hidden (view full) ---

257 fi
258fi
259
260eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} buildworld
261eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_KMAKEFLAGS} buildkernel
262eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
263 release
264eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
133 NODOC=yes
134fi
135
136# If PORTS is set and NODOC is unset, force NODOC=yes because the ports tree
137# is required to build the documentation set.
138if [ -n "${NOPORTS}" ] && [ -z "${NODOC}" ]; then
139 echo "*** NOTICE: Setting NODOC=1 since ports tree is required"
140 echo " and NOPORTS is set."

--- 118 unchanged lines hidden (view full) ---

259 fi
260fi
261
262eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} buildworld
263eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_KMAKEFLAGS} buildkernel
264eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
265 release
266eval chroot ${CHROOTDIR} make -C /usr/src/release ${RELEASE_RMAKEFLAGS} \
265 install DESTDIR=/R
267 install DESTDIR=/R WITH_COMPRESSED_IMAGES=${WITH_COMPRESSED_IMAGES}