1 --- TeX/texk/tetex/allcm.badscript 2006-05-24 16:15:36.000000000 -0700
2 +++ TeX/texk/tetex/allcm 2006-05-24 16:18:47.000000000 -0700
4 test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
7 -tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
8 +tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX`
16 -(umask 077; mkdir "$tmpdir") || {
17 - echo "$progname: failed to create temp directory." >&2
23 echo "---------------------------------------------------------------------" >&2
24 --- TeX/texk/tetex/fmtutil.badscript 2006-05-24 16:19:21.000000000 -0700
25 +++ TeX/texk/tetex/fmtutil 2006-05-24 16:22:26.000000000 -0700
28 trap 'cleanup 1' 1 2 3 7 13 15
30 - (umask 077; mkdir "$tmpdir") \
31 - || abort "could not create directory \`$tmpdir'"
34 ###############################################################################
36 need_find_hyphenfile=false
39 - tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
40 + tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX`
43 # mktexfmtMode: if called as mktexfmt, set to true. Will echo the generated
44 --- TeX/texk/tetex/texconfig.badscript 2006-05-24 16:22:54.000000000 -0700
45 +++ TeX/texk/tetex/texconfig 2006-05-24 16:24:18.000000000 -0700
47 TEXMFDBS TEXMFINI TEXMFSCRIPTS TEXPICTS TEXPKS TEXPOOL TEXPSHEADERS
48 TEXSOURCES TFMFONTS TRFONTS TTFONTS VFFONTS WEB2C WEBINPUTS
50 -tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/tctmp.$$
51 +tmpdir=`mktemp -d "${TMP-/tmp}/$progname.XXXXXX"` || exit 1
57 trap 'cleanup 1' 1 2 3 7 13 15
59 - (umask 077; mkdir "$tmpdir") \
60 - || abort "could not create directory \`$tmpdir'"
63 ###############################################################################
64 --- TeX/texk/tetex/texlinks.badscript 2005-08-28 12:45:59.000000000 -0700
65 +++ TeX/texk/tetex/texlinks 2006-05-24 16:31:25.000000000 -0700
68 trap 'cleanup 1' 1 2 3 7 13 15
70 - (umask 077; mkdir "$tmpdir") \
71 - || abort "could not create directory \`$tmpdir'"
78 search_symlinkdir || return 0
79 - for i in `sed 's@ .*@@' cnf_file_ln.$$`; do
80 + for i in `sed 's@ .*@@' $tmpdir/cnf_file_ln`; do
81 install_link "$selfautoloc/$i" "$symlinkdir/$i"
85 test -f "$cnf_file" || abort "config file \`$cnf' not found"
88 - tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/texlinks.$$
89 + tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX` || exit 1
91 cd "$tmpdir" || cleanup 1
93 sed '/^[ ]*#/d; /^[ ]*$/d' $cnf_file \
94 - | awk '{print $1, $2}' > cnf_file_ln.$$
95 + | awk '{print $1, $2}' > $tmpdir/cnf_file_ln
97 if test -z "$dirs"; then
98 if test $multiplatform = true; then
102 || { errmsg "$d: no write permissions. Skipping..."; continue; }
103 - # cnf_file_ln.$$ has lines with "format engine" pairs
104 - set x `cat cnf_file_ln.$$`; shift
105 + # $tmpdir/cnf_file_ln has lines with "format engine" pairs
106 + set x `cat $tmpdir/cnf_file_ln`; shift
107 while test $# != 0; do
108 fmt=$1; engine=$2; shift; shift
110 --- TeX/texk/tetex/updmap.badscript 2006-05-24 16:32:13.000000000 -0700
111 +++ TeX/texk/tetex/updmap 2006-05-24 16:33:51.000000000 -0700
114 trap 'cleanup 1' 1 2 3 7 13 15
116 - mkdir "$tmpdir" || abort "could not create directory \`$tmpdir'"
119 ###############################################################################
120 @@ -1296,7 +1295,8 @@
121 dvipsoutputdir=; pdftexoutputdir=; dvipdfmoutputdir=
122 : ${TEXMFMAIN=`kpsewhich -var-value=TEXMFMAIN`}
124 - tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
125 + tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX` || \
126 + abort "could not create directory"
130 --- TeX/texk/dviljk/dvihp.badscript 2006-05-24 16:43:13.000000000 -0700
131 +++ TeX/texk/dviljk/dvihp 2006-05-24 16:47:10.000000000 -0700
133 : ${SPOOL=lpr} # used to print an LJ file
134 : ${TMPDIR=${TEMP-${TMP-/tmp}}} # for the dvicopy output
136 -tmpdir="${TMPDIR}"/dvihp$$
137 -(umask 077; mkdir "$tmpdir") \
138 - || { echo "cannot create directory \`$tmpdir'."; exit 1; }
139 +tmpdir=`mktemp -d ${TMPDIR}/dvihp.XXXXXX` || { echo "cannot create secure temporary directory."; exit 1; }
143 --- TeX/texk/dvipdfm/dvipdft.badscript 2006-05-24 16:48:16.000000000 -0700
144 +++ TeX/texk/dvipdfm/dvipdft 2006-05-24 16:51:53.000000000 -0700
149 -tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
150 +tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX`