X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fmake-tar.sh;fp=test%2Fmake-tar.sh;h=f468e2321bf14395ed419368bcc5ef0c14a0a715;hp=fc0d58443a4d2e9015ce7c92991990493b0b0364;hb=90e3b6f9d5d7b2f2e6220b768306ec485ae8a4bf;hpb=b35ecb17e0406b48556609207aa52e9fee15cec6 diff --git a/test/make-tar.sh b/test/make-tar.sh index fc0d5844..f468e232 100644 --- a/test/make-tar.sh +++ b/test/make-tar.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: make-tar.sh,v 1.1 2010/02/20 23:42:40 tom Exp $ +# $Id: make-tar.sh,v 1.4 2010/11/06 18:31:46 tom Exp $ ############################################################################## # Copyright (c) 2010 Free Software Foundation, Inc. # # # @@ -31,11 +31,11 @@ # scripts. The reason for doing that is to simplify distributing the test # programs as a separate package. -ROOTNAME=ncurses-test - TARGET=`pwd` -: ${TMPDIR=/tmp} +: ${ROOTNAME:=ncurses-test} +: ${DESTDIR:=$TARGET} +: ${TMPDIR:=/tmp} # This can be run from either the test subdirectory, or from the top-level # source directory. We will put the tar file in the original directory. @@ -58,7 +58,7 @@ cp -p -r * $BUILD/$ROOTNAME/ || exit # Add the config.* utility scripts from the top-level directory. for i in . .. do - for j in config.guess config.sub + for j in config.guess config.sub install-sh tar-copy.sh do test -f $i/$j && cp -p $i/$j $BUILD/$ROOTNAME/ done @@ -76,8 +76,8 @@ find . -name "*.gz" -exec rm -rf {} \; # Make the files writable... chmod -R u+w . -tar cf - $ROOTNAME | gzip >$TARGET/$ROOTNAME.tar.gz -cd $TARGET +tar cf - $ROOTNAME | gzip >$DESTDIR/$ROOTNAME.tar.gz +cd $DESTDIR pwd ls -l $ROOTNAME.tar.gz