diff options
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf/scripts/texlive/texconf.tlu | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/texconf.tlu b/Master/texmf/scripts/texlive/texconf.tlu index cec0cebd3fe..250150a923a 100755 --- a/Master/texmf/scripts/texlive/texconf.tlu +++ b/Master/texmf/scripts/texlive/texconf.tlu @@ -592,11 +592,20 @@ if doformat then -- I don't know how to select only those formats for which pdftexconfig.tex -- is necessary, so we call fmtutil-sys --refresh -- that will recreate a lot, sorry + -- + -- on win32 texlua's os.spawn does not find fmtutil-sys.texlua as executable + -- even if I give it the full path. So we have to work around that if sys then - command = { "fmtutil-sys", "--refresh" } + if os.type == 'windows' then + local selfautoparent = kpse.var_value('SELFAUTOPARENT') + command = { 'texlua.exe', selfautoparent..'/bin/win32/fmtutil-sys.texlua', '--refresh' } + else + command = { "fmtutil-sys", "--refresh" } + end else command = { "fmtutil", "--refresh" } end + -- should we check the return value? (nil for spawn error, ow return code) os.spawn(command) end |