]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make use of TMPDIR if defined
authorhno <>
Sat, 19 Oct 2002 03:47:11 +0000 (03:47 +0000)
committerhno <>
Sat, 19 Oct 2002 03:47:11 +0000 (03:47 +0000)
mkrelease.sh
mksnapshot.sh

index 326464f30dcc405c0627d5712742a2d3ae412da7..3f8d98c8363fcd3f17f62679a3db91887d8268a2 100755 (executable)
@@ -2,7 +2,7 @@
 if [ $# -ne 1 -a $# -ne 2 ]; then
        echo "Usage: $0 revision [destination]"
        exit 1
-fi
+i
 package=squid
 module=squid3
 rev=`echo $1 | sed -e "s/^${package}-//"`
@@ -12,7 +12,7 @@ startdir=$PWD/
 dst=${2:-$PWD}/
 RELEASE_TIME=`date +%s`
 
-tmpdir=$PWD/${name}-mkrelease
+tmpdir=${TMPDIR:-${PWD}}/${name}-mkrelease
 
 CVSROOT=${CVSROOT:-/server/cvs-server/squid}
 export CVSROOT
index e47788cf8fba12df14e4cbb5cc447485fc534ddc..8712aae8e9c77affe88e1e117203152d4ae4f00b 100755 (executable)
@@ -8,7 +8,7 @@ tag=${1:-HEAD}
 startdir=$PWD
 date=`env TZ=GMT date +%Y%m%d`
 
-tmpdir=$PWD/${module}-${tag}-mksnapshot
+tmpdir=${TMPDIR:-${PWD}}/${module}-${tag}-mksnapshot
 
 CVSROOT=${CVSROOT:-/server/cvs-server/squid}
 export CVSROOT