diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-06-28 09:16:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-06-28 09:16:00 +0200 |
commit | 2314781b6bc93e4fa89c89c0fdac374cd518757a (patch) | |
tree | 7629b1deb1ea63d4fe5b97526330d1b8fa13d16e /tex | |
parent | d7dd95ab84d25447b876416654d5c7cdb9806e64 (diff) | |
download | context-2314781b6bc93e4fa89c89c0fdac374cd518757a.tar.gz |
beta 2011.06.28 09:16
Diffstat (limited to 'tex')
-rw-r--r-- | tex/context/base/data-pre.lua | 2 | ||||
-rw-r--r-- | tex/context/base/data-res.lua | 2 | ||||
-rw-r--r-- | tex/context/base/data-tmf.lua | 15 | ||||
-rw-r--r-- | tex/context/base/status-files.pdf | bin | 23705 -> 23690 bytes |
4 files changed, 14 insertions, 5 deletions
diff --git a/tex/context/base/data-pre.lua b/tex/context/base/data-pre.lua index fa3588c6e..4a5f0ecf5 100644 --- a/tex/context/base/data-pre.lua +++ b/tex/context/base/data-pre.lua @@ -24,6 +24,8 @@ local cleanpath, findgivenfile, expansion = resolvers.cleanpath, resolvers.findg local getenv = resolvers.getenv -- we can probably also use resolvers.expansion local P, Cs, lpegmatch = lpeg.P, lpeg.Cs, lpeg.match +-- getenv = function(...) return resolvers.getenv(...) end -- needs checking (definitions changes later on) + prefixes.environment = function(str) return cleanpath(expansion(str)) end diff --git a/tex/context/base/data-res.lua b/tex/context/base/data-res.lua index 773f7d58e..4d48c3027 100644 --- a/tex/context/base/data-res.lua +++ b/tex/context/base/data-res.lua @@ -136,7 +136,7 @@ local instance = resolvers.instance or nil -- the current one (fast access) function resolvers.setenv(key,value,raw) if instance then -- this one will be consulted first when we stay inside - -- the current environment + -- the current environment (prefixes are not resolved here) instance.environment[key] = value -- we feed back into the environment, and as this is used -- by other applications (via os.execute) we need to make diff --git a/tex/context/base/data-tmf.lua b/tex/context/base/data-tmf.lua index 9391e881e..260beb9f4 100644 --- a/tex/context/base/data-tmf.lua +++ b/tex/context/base/data-tmf.lua @@ -47,7 +47,13 @@ function resolvers.load_tree(tree,resolve) -- Beware, we need to obey the relocatable autoparent so we -- set TEXMFCNF to its raw value. This is somewhat tricky when -- we run a mkii job from within. Therefore, in mtxrun, there - -- is a resolve applied when we're in mkii/kpse mode. + -- is a resolve applied when we're in mkii/kpse mode or when + -- --resolve is passed to mtxrun. Maybe we should also set the + -- local AUTOPARENT etc. although these are alwasy set new. + + if resolve then + resolvers.luacnfspec = resolvers.resolve(resolvers.luacnfspec) + end setenv('SELFAUTOPARENT', newroot) setenv('SELFAUTODIR', newtree) @@ -55,11 +61,12 @@ function resolvers.load_tree(tree,resolve) setenv('TEXROOT', newroot) setenv('TEXOS', texos) setenv('TEXMFOS', texmfos) - setenv('TEXMFCNF', resolvers.luacnfspec, not resolve) - setenv("PATH", newpath .. io.pathseparator .. getenv("PATH")) + setenv('TEXMFCNF', resolvers.luacnfspec,true) -- already resolved + setenv('PATH', newpath .. io.pathseparator .. getenv('PATH')) report_tds("changing from root '%s' to '%s'",oldroot,newroot) - report_tds("prepending '%s' to binary path",newpath) + report_tds("prepending '%s' to PATH",newpath) + report_tds("setting TEXMFCNF to '%s'",resolvers.luacnfspec) report_tds() end end diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf Binary files differindex 35f00b308..990387a72 100644 --- a/tex/context/base/status-files.pdf +++ b/tex/context/base/status-files.pdf |