[tlbuild] patches from Debian

Norbert Preining preining at logic.at
Sat May 9 15:18:38 CEST 2015


Hi Karl.

On Wed, 25 Mar 2015, Karl Berry wrote:
>     [mktexlsr]
>     -treefile="${TMPDIR-/tmp}/mktexlsrtrees$$.tmp"
>     +treefile=`mktemp --tmpdir mktexlsrtrees.XXXXXXXXXX` || exit 1

As we found out, that was rubbish, as --tempdir is not supported
everywhere.

But what about this:
	treefile=`mktemp ${TMPDIR:-/tmp}/mktexlsrtrees.XXXXXXXXXX` || exit 1

Two changes: Add the a `:' which makes sure that if TMPDIR is set but empty,
again /tmp is used, and use of mktemp without any args.

I guess *that* should work on all unixes ;-)

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------


More information about the tlbuild mailing list