diff options
Diffstat (limited to 'Master/bin/i386-cygwin/fmtutil')
-rwxr-xr-x | Master/bin/i386-cygwin/fmtutil | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Master/bin/i386-cygwin/fmtutil b/Master/bin/i386-cygwin/fmtutil index e3cdde40f6b..a2d3808b988 100755 --- a/Master/bin/i386-cygwin/fmtutil +++ b/Master/bin/i386-cygwin/fmtutil @@ -607,15 +607,16 @@ parse_line() texargs="$@" - eval lastarg=\$$# - inifile=`echo $lastarg | sed 's%^\*%%'` - case "$engine" in - mpost) fmtfile="$format.mem"; kpsefmt=mpost; texengine=metapost;; + mpost) fmtfile="$format.mem"; kpsefmt=mp; texengine=metapost;; mf|mfw|mf-nowin) fmtfile="$format.base"; kpsefmt=mf; texengine=metafont;; - *) fmtfile="$format.fmt"; kpsefmt=tex; texengine=$engine;; + *) fmtfile="$format.fmt"; kpsefmt=tex; texengine=$engine;; esac + # remove any * for the sake of the kpsewhich lookup. + eval lastarg=\$$# + inifile=`echo $lastarg | sed 's%^\*%%'` + # See if we can find $inifile for return code: kpsewhich -progname=$format -format=$kpsefmt $inifile >/dev/null 2>&1 } @@ -673,9 +674,9 @@ run_initex() jobswitch="-jobname=$format" case "$format" in - metafun) prgswitch=-progname=mpost;; + metafun) prgswitch=-progname=mpost;; mptopdf|cont-??) prgswitch=-progname=context;; - *) prgswitch=-progname=$format;; + *) prgswitch=-progname=$format;; esac rm -f $fmtfile |