On 6/16/2015 7:52 PM, Yaakov Selkowitz wrote:
On Tue, 2015-06-16 at 10:24 -0400, Ken Brown wrote:
The syntax for 'fmtutil' has changed in TeX Live 2015. The attached
patch accommodates that change.
Just curious, what changed? AFAICS the fmtutil-sys in 20140523-2 also
accepts --byfmt.
The change is in the --enablefmt/--disablefmt commands. For example, there are
two formats called cont-en, one with engine pdftex and one with engine xetex.
It used to be that you could write
fmtutil-sys --enablefmt cont-en
and both of those formats would be enabled. Now you have to write
fmtutil-sys --enablefmt cont-en/pdftex
or
fmtutil-sys --enablefmt cont-en/xetex
or both. But for --byfmt, you still just use cont-en as before.
Also, I'm a bit confused by the use of $formats. It seems to just be a
list of all ${fmt%/*}, but then in the --byfmt call you have ${format
%/*}.
That's just a careless mistake on my part. Thanks for catching it. I should
have just used $format in the --byfmt call. The point of $formats is that it's
a list of all ${fmt%/*} *without repetitions*; for example, cont-en would occur
twice if I didn't remove repetitions.
Ken