[tex-live] how to find out what went wrong with fmtutil?
Jonathan Kew
jonathan_kew at sil.org
Sat Jan 13 12:05:18 CET 2007
On 12 Jan 2007, at 8:03 pm, Karl Berry wrote:
> | Error: `pdftex -ini -jobname=pdftex -progname=pdftex
> -translate-file=cp227.tcx *pdftex.ini' failed
>
> On line 727 there was a
> | sed 1q
>
> Delete it. (r3392 in repo.) It's a long story.
OK, here's an alternative patch to restrict mktexfmt to echoing a
single filename. This seems like it should avoid other breakage, by
suppressing the echo altogether for any subsequent files, rather than
trying to add a pipe operation. Seems to work for me in all cases
tested so far:
===================================================================
--- fmtutil (revision 3414)
+++ fmtutil (working copy)
@@ -362,9 +362,10 @@
tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
verboseFlag=true
- # mktexfmtMode: if called as mktexfmt, set to true. Will echo the
generated
+ # mktexfmtMode: if called as mktexfmt, set to true. Will echo the
first generated
# filename after successful generation to stdout then (and
nothing else).
mktexfmtMode=false
+ mktexfmtFirst=true
case $argv0 in
mktexfmt|*/mktexfmt)
mktexfmtMode=true
@@ -699,7 +700,7 @@
mv "$format.log" "$fulldestdir/$format.log" </dev/null
if mv "$fmtfile" "$fulldestdir/$fmtfile" </dev/null; then
verboseMsg "$progname: $fulldestdir/$fmtfile installed."
- $mktexfmtMode && echo "$fulldestdir/$fmtfile"
+ $mktexfmtMode && $mktexfmtFirst && echo "$fulldestdir/
$fmtfile" && mktexfmtFirst=false
mktexupd "$fulldestdir" "$fmtfile"
fi
else
===================================================================
Do you see anything risky about this version?
JK
More information about the tex-live
mailing list