]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
running check-instincludes requires a CVS tree; require absolute path for kit file
authorAndreas Gustafsson <source@isc.org>
Thu, 9 Aug 2001 02:36:01 +0000 (02:36 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 9 Aug 2001 02:36:01 +0000 (02:36 +0000)
util/altbuild.sh

index f3202aeb81b203103e5a8c0504c5428dbf5f4896..96f903b2e831f08377a9ac729c4d51df5ae6b916 100644 (file)
@@ -15,7 +15,7 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: altbuild.sh,v 1.10 2001/08/01 21:52:41 gson Exp $
+# $Id: altbuild.sh,v 1.11 2001/08/09 02:36:01 gson Exp $
 
 #
 # "Alternative build" test.
 
 case $# in 
     1) arg=$1 ;;
-    *) echo "usage: $0 cvs-tag | gzipped-tar-file" >&2; exit 1 ;;
+    *) echo "usage: $0 cvs-tag | absolute-path-to-gzipped-tar-file" >&2; exit 1 ;;
 esac
 
 here=`pwd`
 
+test -f util/check-instincludes.sh || {
+    echo "$0: must be run from top of CVS tree";
+    exit 1;
+}
+
 kitdir=/tmp/kit
 srcdir=/tmp/src
 builddir=/tmp/build
@@ -51,7 +56,7 @@ mkdir $instdir
 
 case $arg in
     *.tar.gz)
-       kit="$here/$arg"
+       kit="$arg"
        ;;
     *)
        tag="$arg"