kit.sh revision 70e5a7403f0e0a3bd292b8287c5fed5772c15270
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# Copyright (C) 2000-2003 Internet Software Consortium.
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# Permission to use, copy, modify, and/or distribute this software for any
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# purpose with or without fee is hereby granted, provided that the above
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews# copyright notice and this permission notice appear in all copies.
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# PERFORMANCE OF THIS SOFTWARE.
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# $Id: kit.sh,v 1.31 2007/06/19 23:47:24 tbox Exp $
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# Make a release kit
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# Usage: sh kit.sh tag tmpdir
bf49a52178db60df60f2316a3977b2249f7c0edbBrian Wellington# (e.g., sh kit.sh v9_0_0b5 /tmp/bindkit
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews# To build a snapshot release, use the pseudo-tag "snapshot".
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews# (e.g., sh kit.sh snapshot /tmp/bindkit
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews *) echo "usage: sh kit.sh [snapshot] cvstag tmpdir" >&2
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews snapshot) tag=HEAD; snapshot=true ; releasetag="" ;;
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews *) echo "usage: sh kit.sh [snapshot] cvstag tmpdir" >&2
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews echo "$0: could not create directory $tmpdir" >&2
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrewscvs checkout -p -r $tag bind9/version >version.tmp
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrews set `date -u +'%Y%m%d%H%M%S %Y/%m/%d %H:%M:%S UTC'`
9cc53f2a0819301c2de7ab93197eee11e8a365e7Mark Andrewsversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
echo "building release kit for BIND version $version, hold on..."
if $snapshot