diff options
author | Norbert Preining <preining@logic.at> | 2008-04-24 09:48:51 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-04-24 09:48:51 +0000 |
commit | 2a7103f5b06e29500a528c59bcaa80749562d312 (patch) | |
tree | b6e2f22f0667cc204d1d079b0db4b3ff20965e4b /Master | |
parent | a1e401d3758fd8bfb9f774bfc44e7014b3864ed5 (diff) |
fix fmt regeneration on win32
git-svn-id: svn://tug.org/texlive/trunk@7629 c570f23f-e606-0410-a88d-b1316a301751
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 |