diff options
author | gjb <gjb@FreeBSD.org> | 2013-11-08 17:27:38 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2013-11-08 17:27:38 +0000 |
commit | 0e176e0b9e9b2eeb7ad7997529e28bee2658d9dd (patch) | |
tree | 9d7651e6a4ce28f3116a1b55e744a80ab7fde262 | |
parent | cd1f38856a7164d3dfaf21d441b918cbd9b14972 (diff) | |
download | FreeBSD-src-0e176e0b9e9b2eeb7ad7997529e28bee2658d9dd.zip FreeBSD-src-0e176e0b9e9b2eeb7ad7997529e28bee2658d9dd.tar.gz |
Remove generate-release.sh from head/.
The release.sh (based heavily on generate-release.sh) has been
used for the 9.2-RELEASE and 10.0-RELEASE cycles, so make sure
there is no confusion on what is currently being used by having
two similar scripts.
A big "thank you" to Nathan Whitehorn, the author of the
generate-release.sh script, for writing this utility.
No objection: nwhitehorn
MFC after: never
Sponsored by: The FreeBSD Foundation
-rwxr-xr-x | release/generate-release.sh | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/release/generate-release.sh b/release/generate-release.sh deleted file mode 100755 index b9b5f20..0000000 --- a/release/generate-release.sh +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/sh -#- -# Copyright (c) 2011 Nathan Whitehorn -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# -# $FreeBSD$ -# - -# generate-release.sh: check out source trees, and build release components with -# totally clean, fresh trees. -# -# Usage: generate-release.sh svn-branch[@revision] scratch-dir -# -# Environment variables: -# SVNROOTBASE: SVN base URL to FreeBSD repository (svn://svn.freebsd.org) -# SVNROOTSRC: URL to FreeBSD src tree (${SVNROOTBASE}/base) -# SVNROOTDOC: URL to FreeBSD doc tree (${SVNROOTBASE}/doc) -# SVNROOTPORTS:URL to FreeBSD ports tree (${SVNROOTBASE}/ports) -# BRANCHSRC: branch name of src (svn-branch[@revision]) -# BRANCHDOC: branch name of doc (head) -# BRANCHPORTS: branch name of ports (head) -# WORLD_FLAGS: optional flags to pass to buildworld (e.g. -j) -# KERNEL_FLAGS: optional flags to pass to buildkernel (e.g. -j) -# - -usage() -{ - echo "Usage: $0 svn-branch[@revision] scratch-dir" 2>&1 - exit 1 -} - -if [ $# -lt 2 ]; then - usage -fi - -: ${SVNROOTBASE:=svn://svn.freebsd.org} -: ${SVNROOTSRC:=${SVNROOTBASE}/base} -: ${SVNROOTDOC:=${SVNROOTBASE}/doc} -: ${SVNROOTPORTS:=${SVNROOTBASE}/ports} -: ${SVNROOT:=${SVNROOTSRC}} # for backward compatibility -: ${SVN_CMD:=/usr/local/bin/svn} -BRANCHSRC=$1 -: ${BRANCHDOC:=head} -: ${BRANCHPORTS:=head} -: ${WORLD_FLAGS:=${MAKE_FLAGS}} -: ${KERNEL_FLAGS:=${MAKE_FLAGS}} -: ${CHROOTDIR:=$2} - -if [ ! -r "${CHROOTDIR}" ]; then - echo "${CHROOTDIR}: scratch dir not found." - exit 1 -fi - -CHROOT_CMD="/usr/sbin/chroot ${CHROOTDIR}" -case ${TARGET} in -"") ;; -*) SETENV_TARGET="TARGET=$TARGET" ;; -esac -case ${TARGET_ARCH} in -"") ;; -*) SETENV_TARGET_ARCH="TARGET_ARCH=$TARGET_ARCH" ;; -esac -SETENV="env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin" -CROSSENV="${SETENV_TARGET} ${SETENV_TARGET_ARCH}" -WMAKE="make -C /usr/src ${WORLD_FLAGS}" -NWMAKE="${WMAKE} __MAKE_CONF=/dev/null SRCCONF=/dev/null" -KMAKE="make -C /usr/src ${KERNEL_FLAGS}" -RMAKE="make -C /usr/src/release" - -if [ $(id -u) -ne 0 ]; then - echo "Needs to be run as root." - exit 1 -fi - -set -e # Everything must succeed - -mkdir -p ${CHROOTDIR}/usr/src -${SVN_CMD} co ${SVNROOT}/${BRANCHSRC} ${CHROOTDIR}/usr/src -${SVN_CMD} co ${SVNROOTDOC}/${BRANCHDOC} ${CHROOTDIR}/usr/doc -${SVN_CMD} co ${SVNROOTPORTS}/${BRANCHPORTS} ${CHROOTDIR}/usr/ports - -${SETENV} ${NWMAKE} -C ${CHROOTDIR}/usr/src ${WORLD_FLAGS} buildworld -${SETENV} ${NWMAKE} -C ${CHROOTDIR}/usr/src installworld distribution DESTDIR=${CHROOTDIR} -mount -t devfs devfs ${CHROOTDIR}/dev -trap "umount ${CHROOTDIR}/dev" EXIT # Clean up devfs mount on exit - -if [ -d ${CHROOTDIR}/usr/doc ]; then - cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf - - # Install docproj to build release documentation - ${CHROOT_CMD} /bin/sh -c \ - 'make -C /usr/ports/textproc/docproj \ - BATCH=yes \ - WITHOUT_SVN=yes \ - WITHOUT_JADETEX=yes \ - WITHOUT_X11=yes \ - WITHOUT_PYTHON=yes \ - install' -fi - -${CHROOT_CMD} ${SETENV} ${CROSSENV} ${WMAKE} buildworld -${CHROOT_CMD} ${SETENV} ${CROSSENV} ${KMAKE} buildkernel -${CHROOT_CMD} ${SETENV} ${CROSSENV} ${RMAKE} release -${CHROOT_CMD} ${SETENV} ${CROSSENV} ${RMAKE} install DESTDIR=/R |