2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

portability, allow working directory to be specified.

This commit is contained in:
Mark Andrews 2002-02-20 02:28:33 +00:00
parent 6a8832f784
commit 9d22ce85cc

View File

@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: altbuild.sh,v 1.11 2001/08/09 02:36:01 gson Exp $ # $Id: altbuild.sh,v 1.12 2002/02/20 02:28:33 marka Exp $
# #
# "Alternative build" test. # "Alternative build" test.
@ -25,9 +25,11 @@
# command line argument. # command line argument.
# #
tmpdir=/tmp
case $# in case $# in
2) arg=$1 tmpdir="$2" ;;
1) arg=$1 ;; 1) arg=$1 ;;
*) echo "usage: $0 cvs-tag | absolute-path-to-gzipped-tar-file" >&2; exit 1 ;; *) echo "usage: $0 cvs-tag | absolute-path-to-gzipped-tar-file [tmpdir]" >&2; exit 1 ;;
esac esac
here=`pwd` here=`pwd`
@ -37,11 +39,12 @@ test -f util/check-instincludes.sh || {
exit 1; exit 1;
} }
kitdir=/tmp/kit kitdir=${tmpdir}/kit
srcdir=/tmp/src srcdir=${tmpdir}/src
builddir=/tmp/build builddir=${tmpdir}/build
instdir=/tmp/inst instdir=${tmpdir}/inst
test ! -d $tmpdir || mkdir $tmpdir
test ! -d $kitdir || rm -rf $kitdir test ! -d $kitdir || rm -rf $kitdir
mkdir $kitdir mkdir $kitdir
@ -66,7 +69,7 @@ case $arg in
esac esac
cd $srcdir || exit 1 cd $srcdir || exit 1
zcat $kit | tar xf - gzcat $kit | tar xf -
cd $builddir || exit 1 cd $builddir || exit 1