Hi Grobian,
authorFabian Groffen <grobian@gentoo.org>
Tue, 15 May 2007 19:37:06 +0000 (19:37 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 15 May 2007 19:37:06 +0000 (19:37 -0000)
in prefix-portage/subst-install.in there is a problem using ${TMP-/tmp}
as temporary directory instead of ${TMPDIR-/tmp}.

TMP is undefined for unix, TMPDIR needs to be used instead.
But on Interix/Windows, TMP must be defined as dos-style path...

Thanks!

/haubi/

(so far for the smell of Windows, thanks Michael Haubenwallner)

svn path=/main/branches/prefix/; revision=6538

subst-install.in

index 904a6c7ffef5352d056bd328cc4a4589ada0bdf0..e9e6d6821c44976fb7b45c7e53816e083e88f9e7 100644 (file)
@@ -17,7 +17,7 @@ me=${mydir}/${myname}
 
 . ${mydir}/subst-install.vars
 
-substinstall_tmpdir=${TMP-/tmp}/${myname}.$$
+substinstall_tmpdir=${TMPDIR-/tmp}/${myname}.$$
 trap "${RM} -rf \${substinstall_tmpdir}" "0"
 mkdir -p ${substinstall_tmpdir} \
 || { echo "cannot create directory ${substinstall_tmpdir}" >&2 ; exit 1 ; }