summaryrefslogtreecommitdiff
path: root/Master/bin/sparc-solaris/dvihp
diff options
context:
space:
mode:
authorMojca Miklavec <mojca.miklavec@gmail.com>2018-03-05 09:24:48 +0000
committerMojca Miklavec <mojca.miklavec@gmail.com>2018-03-05 09:24:48 +0000
commit664eeb1929dfaff3a728e285bc4f5474109be318 (patch)
treeaaa764f056051a2153f1f4c4c21baa088eadc957 /Master/bin/sparc-solaris/dvihp
parentcc577ce8c5e051967fce0ae954f78874e400c2f8 (diff)
Initial Solaris binaries for TL2018 (r46804)
git-svn-id: svn://tug.org/texlive/trunk@46829 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/sparc-solaris/dvihp')
-rwxr-xr-xMaster/bin/sparc-solaris/dvihp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Master/bin/sparc-solaris/dvihp b/Master/bin/sparc-solaris/dvihp
index fdaf3fb87bf..03a2dbe9605 100755
--- a/Master/bin/sparc-solaris/dvihp
+++ b/Master/bin/sparc-solaris/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