diff options
author | Karl Berry <karl@freefriends.org> | 2009-06-11 23:26:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-06-11 23:26:38 +0000 |
commit | 19f6c22e1b0882320d04bb9f2fb1f2b9422aeac5 (patch) | |
tree | 29a3acdb8db734e9118fa938ca736d291eeb36c7 /Master/bin/i386-cygwin/fmtutil | |
parent | 5e3364c59042be87b704bd1987cb6a19069051a2 (diff) |
i386-cygwin binaries from Ken (+asy from Bowman)
git-svn-id: svn://tug.org/texlive/trunk@13717 c570f23f-e606-0410-a88d-b1316a301751
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 |