]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
support building from a tar.gz file, not just from CVS
authorAndreas Gustafsson <source@isc.org>
Thu, 28 Jun 2001 01:34:20 +0000 (01:34 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 28 Jun 2001 01:34:20 +0000 (01:34 +0000)
util/altbuild.sh

index 4c98dd6a602e8584324f655a113c657b342d7cb9..24ee6b3c4ad76446573eda596e3e0d4730006dce 100644 (file)
 # 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