From d49d75f5073294d798aa500728116309398bb535 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 28 Jul 2000 01:47:16 +0000 Subject: [PATCH] added script for building release kits --- util/copyrights | 1 + util/kit.sh | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 util/kit.sh diff --git a/util/copyrights b/util/copyrights index 6bd0353d9a..a82dbb8d5f 100644 --- a/util/copyrights +++ b/util/copyrights @@ -1300,6 +1300,7 @@ ./util/check-instincludes.sh SH 2000 ./util/check-sources.pl PERL 2000 ./util/copyrights X 1999,2000 +./util/kit.sh SH 2000 ./util/make-snapshot.sh SH 2000 ./util/memleak.pl PERL 1999,2000 ./util/merge_copyrights PERL 1998,1999,2000 diff --git a/util/kit.sh b/util/kit.sh new file mode 100644 index 0000000000..a9387524b7 --- /dev/null +++ b/util/kit.sh @@ -0,0 +1,72 @@ +#!/bin/sh +# +# Copyright (C) 2000 Internet Software Consortium. +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM +# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL +# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING +# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION +# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +# $Id: kit.sh,v 1.1 2000/07/28 01:47:16 gson Exp $ + +# Make a release kit +# +# Usage: sh makekit.sh tag tmpdir +# +# (e.g., sh makekit.sh v9_0_0b5 /tmp/bindkit +# + +case $# in + 2) tag=$1; tmpdir=$2 ;; + *) echo "usage: sh makekit.sh tmpdir tag" >&2 + exit 1 + ;; +esac + +test -d $tmpdir || +mkdir $tmpdir || { + echo "$0: could not create directory $tmpdir" >&2 + exit 1 +} + +cd $tmpdir || exit 1 + +cvs checkout -p -r $tag bind9/version >version.tmp +. ./version.tmp + +VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER} + +echo "building release kit for BIND version $VERSION, hold on..." + +topdir=bind-$VERSION + +test ! -d $topdir || { + echo "$0: directory `pwd`/$topdir already exists" >&2 + exit 1 +} + +cvs -Q export -r $tag -d $topdir bind9 + +cd $topdir || exit 1 + +sh util/sanitize_all.sh + +# Omit some files and directories from the kit. +rm -rf TODO conftools util doc/design doc/dev doc/expired doc/html bin/lwresd +find . -name .cvsignore -print | xargs rm + +cd .. || exit 1 + +kit=$topdir.tar.gz + +gtar -c -z -f $kit $topdir + +echo "done, kit is in `pwd`/$kit"