ogajduse / rpms / texlive

Forked from rpms/texlive 6 years ago
Clone
16628e7
diff -up texlive-2007/texk/tetex/fmtutil.infloop texlive-2007/texk/tetex/fmtutil
16628e7
--- texlive-2007/texk/tetex/fmtutil.infloop	2008-03-12 10:51:14.000000000 +0100
16628e7
+++ texlive-2007/texk/tetex/fmtutil	2008-03-12 16:53:05.000000000 +0100
16628e7
@@ -680,6 +680,15 @@
16628e7
   esac
16628e7
 
16628e7
   rm -f $fmtfile
16628e7
+
16628e7
+  # Check for infinite recursion before running the iniTeX:
16628e7
+  case :$mktexfmt_loop: in
16628e7
+  *:"$format":*)
16628e7
+    abort "Infinite recursion detected, giving up!" ;;
16628e7
+  esac
16628e7
+  mktexfmt_loop=$mktexfmt_loop:$format
16628e7
+  export mktexfmt_loop
16628e7
+
16628e7
   verboseMsg "$progname: running \`$engine -ini  $tcxflag $jobswitch $prgswitch $texargs' ..."
16628e7
 
16628e7
   # run in a subshell to get a local effect of TEXPOOL manipulation: