From 235971ff07f0f5d7a3a3ce705043094bc816b432 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 24 May 2012 01:00:13 +0300 Subject: beta 2012.05.23 23:31 --- scripts/context/lua/mtxrun.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'scripts/context/lua') diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index 7948922f7..9d0edf689 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -11004,16 +11004,27 @@ local function f_second(a,b) return concat(t,",") end +-- local function f_both(a,b) +-- local t, n = { }, 0 +-- for sb in gmatch(b,"[^,]+") do -- and not sa +-- for sa in gmatch(a,"[^,]+") do -- sb +-- n = n + 1 ; t[n] = sa .. sb +-- end +-- end +-- return concat(t,",") +-- end + local function f_both(a,b) local t, n = { }, 0 - for sb in gmatch(b,"[^,]+") do -- and not sa - for sa in gmatch(a,"[^,]+") do -- sb + for sa in gmatch(a,"[^,]+") do + for sb in gmatch(b,"[^,]+") do n = n + 1 ; t[n] = sa .. sb end end return concat(t,",") end + local left = P("{") local right = P("}") local var = P((1 - S("{}" ))^0) @@ -12325,7 +12336,8 @@ if environment.default_texmfcnf then -- unfortunately we now have quite some overkill in the spec (not so nice on a network) local luacnfspec = environment.default_texmfcnf -- we also want to use this in the minimals / standalone - luacnfspec = gsub(luacnfspec,"%-local","-local,-context") + -- bu tit's too tricky as it can be an expanded spec + -- luacnfspec = gsub(luacnfspec,"%-local","-local,-context") -- and we also need to support the home dir (for taco) resolvers.luacnfspec = 'home:texmf/web2c;' .. luacnfspec elseif this_is_texlive then -- cgit v1.2.3