tibbs / rpms / texlive

Forked from rpms/texlive 6 years ago
Clone
4931932
--- TeX/texk/tetex/texconfig.tmpcleanup	2006-05-24 17:21:48.000000000 -0700
4931932
+++ TeX/texk/tetex/texconfig	2006-05-24 17:23:55.000000000 -0700
4931932
@@ -38,7 +38,8 @@
4931932
   TEXSOURCES TFMFONTS TRFONTS TTFONTS VFFONTS WEB2C WEBINPUTS
4931932
 "
4931932
 tmpdir=`mktemp -d "${TMP-/tmp}/$progname.XXXXXX"` || exit 1
4931932
-needsCleanup=false
4931932
+trap -- "cleanup;" EXIT 1 2 3 7 13 15
4931932
+needsCleanup=true
4931932
 lastUpdatedFile=
4931932
 
4931932
 ###############################################################################
4931932
--- TeX/texk/tetex/updmap.tmpcleanup	2006-05-24 17:24:18.000000000 -0700
4931932
+++ TeX/texk/tetex/updmap	2006-05-24 17:26:39.000000000 -0700
4931932
@@ -1288,7 +1288,7 @@
4931932
   texhashEnabled=true
4931932
   mkmapEnabled=true
4931932
   verbose=true
4931932
-  needsCleanup=false
4931932
+  needsCleanup=true
4931932
 
4931932
   cnfFileShort=updmap.cfg
4931932
   cnfFile=
4931932
@@ -1296,7 +1296,8 @@
4931932
   : ${TEXMFMAIN=`kpsewhich -var-value=TEXMFMAIN`}
4931932
 
4931932
   tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX` || \
4931932
-       abort "could not create directory"
4931932
+       abort "could not create temporary directory"
4931932
+  trap -- "cleanup;" EXIT 1 2 3 7 13 15
4931932
   tmp1=$tmpdir/a
4931932
   tmp2=$tmpdir/b
4931932
   tmp3=$tmpdir/c
4931932
--- TeX/texk/tetex/fmtutil.tmpcleanup	2006-05-24 17:27:13.000000000 -0700
4931932
+++ TeX/texk/tetex/fmtutil	2006-05-24 17:30:36.000000000 -0700
4931932
@@ -349,11 +349,13 @@
4931932
   destdir=     # global variable: where do we put the format files?
4931932
   cnf_file=    # global variable: full name of the config file
4931932
   cmd=         # desired action from command line
4931932
-  needsCleanup=false
4931932
+  needsCleanup=true
4931932
   need_find_hyphenfile=false
4931932
   cfgparam=
4931932
   cfgmaint=
4931932
-  tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX`
4931932
+  tmpdir=`mktemp -d ${TMP-/tmp}/$progname.XXXXXX` || \
4931932
+      abort "could not create temporary directory"
4931932
+  trap -- "cleanup;" EXIT 1 2 3 7 13 15
4931932
   verboseFlag=true
4931932
 
4931932
   # mktexfmtMode: if called as mktexfmt, set to true. Will echo the generated