Deleted Added
full compact
generate-release.sh (246283) generate-release.sh (251650)
1#!/bin/sh
1#!/bin/sh
2#-
3# Copyright (c) 2011 Nathan Whitehorn
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14#
15# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/release/generate-release.sh 251650 2013-06-12 12:38:12Z nwhitehorn $
28#
2
3# generate-release.sh: check out source trees, and build release components with
4# totally clean, fresh trees.
5#
6# Usage: generate-release.sh svn-branch[@revision] scratch-dir
7#
8# Environment variables:
9# SVNROOTBASE: SVN base URL to FreeBSD repository (svn://svn.freebsd.org)
10# SVNROOTSRC: URL to FreeBSD src tree (${SVNROOTBASE}/base)
11# SVNROOTDOC: URL to FreeBSD doc tree (${SVNROOTBASE}/doc)
12# SVNROOTPORTS:URL to FreeBSD ports tree (${SVNROOTBASE}/ports)
13# BRANCHSRC: branch name of src (svn-branch[@revision])
14# BRANCHDOC: branch name of doc (head)
15# BRANCHPORTS: branch name of ports (head)
16# WORLD_FLAGS: optional flags to pass to buildworld (e.g. -j)
17# KERNEL_FLAGS: optional flags to pass to buildkernel (e.g. -j)
18#
29
30# generate-release.sh: check out source trees, and build release components with
31# totally clean, fresh trees.
32#
33# Usage: generate-release.sh svn-branch[@revision] scratch-dir
34#
35# Environment variables:
36# SVNROOTBASE: SVN base URL to FreeBSD repository (svn://svn.freebsd.org)
37# SVNROOTSRC: URL to FreeBSD src tree (${SVNROOTBASE}/base)
38# SVNROOTDOC: URL to FreeBSD doc tree (${SVNROOTBASE}/doc)
39# SVNROOTPORTS:URL to FreeBSD ports tree (${SVNROOTBASE}/ports)
40# BRANCHSRC: branch name of src (svn-branch[@revision])
41# BRANCHDOC: branch name of doc (head)
42# BRANCHPORTS: branch name of ports (head)
43# WORLD_FLAGS: optional flags to pass to buildworld (e.g. -j)
44# KERNEL_FLAGS: optional flags to pass to buildkernel (e.g. -j)
45#
19# $FreeBSD: head/release/generate-release.sh 246283 2013-02-03 10:26:24Z hrs $
20#
21
22usage()
23{
24 echo "Usage: $0 svn-branch[@revision] scratch-dir" 2>&1
25 exit 1
26}
27
28if [ $# -lt 2 ]; then

--- 72 unchanged lines hidden ---
46
47usage()
48{
49 echo "Usage: $0 svn-branch[@revision] scratch-dir" 2>&1
50 exit 1
51}
52
53if [ $# -lt 2 ]; then

--- 72 unchanged lines hidden ---