diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-10-07 14:15:06 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-10-07 14:15:06 +0200 |
commit | ee1c809d23ce322e7946f941545f7e0fa27ae5c6 (patch) | |
tree | 3e32a64b19cf9706e5ff0df289eb56e77571a5ca /scripts | |
parent | 961f357ef202a44da1f4b315c82ef143a6f51497 (diff) | |
download | context-ee1c809d23ce322e7946f941545f7e0fa27ae5c6.tar.gz |
2015-10-07 12:05:00
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-context.lua | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 3c78532d8..36893f45c 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -1028,15 +1028,17 @@ do -- more or less copied from mtx-plain.lua: end end fmtpathspec = string.splitlines(fmtpathspec)[1] or fmtpathspec - fmtpathspec = file.splitpath(fmtpathspec) + fmtpathspec = fmtpathspec and file.splitpath(fmtpathspec) local fmtpath = nil - for i=1,#fmtpathspec do - local path = fmtpathspec[i] - if path ~= "." then - dir.makedirs(path) - if lfs.isdir(path) and file.is_writable(path) then - fmtpath = path - break + if fmtpathspec then + for i=1,#fmtpathspec do + local path = fmtpathspec[i] + if path ~= "." then + dir.makedirs(path) + if lfs.isdir(path) and file.is_writable(path) then + fmtpath = path + break + end end end end @@ -1060,6 +1062,17 @@ do -- more or less copied from mtx-plain.lua: end make_mkii_format = function(name,engine) + + -- let the binary sort it out + + os.setenv('SELFAUTOPARENT', "") + os.setenv('SELFAUTODIR', "") + os.setenv('SELFAUTOLOC', "") + os.setenv('TEXROOT', "") + os.setenv('TEXOS', "") + os.setenv('TEXMFOS', "") + os.setenv('TEXMFCNF', "") + make(engine,name) end |