From: Andreas Gustafsson Date: Thu, 28 Jun 2001 01:34:20 +0000 (+0000) Subject: support building from a tar.gz file, not just from CVS X-Git-Tag: v9.1.3^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7e43a7da35ccfe1219f9f36d1f3c719281faa0;p=thirdparty%2Fbind9.git support building from a tar.gz file, not just from CVS --- diff --git a/util/altbuild.sh b/util/altbuild.sh index 4c98dd6a602..24ee6b3c4ad 100644 --- a/util/altbuild.sh +++ b/util/altbuild.sh @@ -15,18 +15,19 @@ # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -# $Id: altbuild.sh,v 1.6.2.1 2001/01/09 22:53:28 bwelling Exp $ +# $Id: altbuild.sh,v 1.6.2.2 2001/06/28 01:34:20 gson Exp $ # # "Alternative build" test. # # Build BIND9 with build options that are seldom tested otherwise. -# Specify the CVS tag as a command line argument. +# Specify the CVS tag or the name of a kit .tar.gz file as a +# command line argument. # case $# in - 1) tag=$1 ;; - *) echo "usage: $0 cvs-tag" >&2; exit 1 ;; + 1) arg=$1 ;; + *) echo "usage: $0 cvs-tag | gzipped-tar-file" >&2; exit 1 ;; esac here=`pwd` @@ -48,10 +49,19 @@ mkdir $builddir test ! -d $instdir || rm -rf $instdir mkdir $instdir -sh util/kit.sh $tag $kitdir || exit 1 +case $arg in + *.tar.gz) + kit="$arg" + ;; + *) + tag="$arg" + sh util/kit.sh $tag $kitdir || exit 1 + kit=$kitdir/*.tar.gz + ;; +esac cd $srcdir || exit 1 -zcat $kitdir/*.tar.gz | tar xf - +zcat $kit | tar xf - cd $builddir || exit 1