From 58c48b3b48f0de8fa31fc913aff3b8774c1e72e7 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 9 Aug 2001 02:36:01 +0000 Subject: [PATCH] running check-instincludes requires a CVS tree; require absolute path for kit file --- util/altbuild.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/util/altbuild.sh b/util/altbuild.sh index f3202aeb81..96f903b2e8 100644 --- a/util/altbuild.sh +++ b/util/altbuild.sh @@ -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. @@ -27,11 +27,16 @@ 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"