X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fmake-tar.sh;h=a2498fb3ecbdbaf910f82a40f0df0db4a47eac94;hp=ab8abf57b3ae7189933dd170a1660dfeae9a4686;hb=70322aa06a4a97ebff76d2869ad923cdf51ee0a9;hpb=677412a37f53a465b9b127843d4aa070077659e8 diff --git a/Ada95/make-tar.sh b/Ada95/make-tar.sh index ab8abf57..a2498fb3 100644 --- a/Ada95/make-tar.sh +++ b/Ada95/make-tar.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: make-tar.sh,v 1.4 2010/02/27 23:57:56 tom Exp $ +# $Id: make-tar.sh,v 1.6 2010/11/06 19:59:07 tom Exp $ ############################################################################## # Copyright (c) 2010 Free Software Foundation, Inc. # # # @@ -31,11 +31,11 @@ # documentation. The reason for doing that is to simplify distributing the # ada binding as a separate package. -ROOTNAME=ncurses-Ada95 - TARGET=`pwd` -: ${TMPDIR=/tmp} +: ${ROOTNAME:=ncurses-Ada95} +: ${DESTDIR:=$TARGET} +: ${TMPDIR:=/tmp} # This can be run from either the Ada95 subdirectory, or from the top-level # source directory. We will put the tar file in the original directory. @@ -83,8 +83,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