summaryrefslogtreecommitdiff
path: root/Master/bin/x86_64-darwin/dvihp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-03-03 23:33:52 +0000
committerKarl Berry <karl@freefriends.org>2018-03-03 23:33:52 +0000
commit5fb22438e712fa5c1bf2a938ffcabc4ce650a657 (patch)
tree14bc4a42a38bcc625eba24cf25fb0710c382ed71 /Master/bin/x86_64-darwin/dvihp
parent49b02bd2f9b2cd0ef834c72850e519a9bec4ccd5 (diff)
tl18 pretest x86_64-darwin
git-svn-id: svn://tug.org/texlive/trunk@46806 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/x86_64-darwin/dvihp')
-rwxr-xr-xMaster/bin/x86_64-darwin/dvihp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Master/bin/x86_64-darwin/dvihp b/Master/bin/x86_64-darwin/dvihp
index fdaf3fb87bf..03a2dbe9605 100755
--- a/Master/bin/x86_64-darwin/dvihp
+++ b/Master/bin/x86_64-darwin/dvihp
@@ -6,14 +6,11 @@
: ${DVILJ=dvilj4} # the dvilj variant to run
: ${SPOOL=lpr} # used to print an LJ file
-: ${TMPDIR=${TEMP-${TMP-/tmp}}} # for the dvicopy output
-tmpdir="${TMPDIR}"/dvihp$$
-(umask 077; mkdir "$tmpdir") \
+tmpdir=`mktemp -d` \
|| { echo "cannot create directory \`$tmpdir'."; exit 1; }
trap '
- cd "${TMPDIR}"
test -d "$tmpdir" && { rm -f "$tmpdir"/*; rmdir "$tmpdir"; }
exit 0
' 0 1 2 3 6 7 13 15