summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-05-24 01:00:13 +0300
committerMarius <mariausol@gmail.com>2012-05-24 01:00:13 +0300
commit235971ff07f0f5d7a3a3ce705043094bc816b432 (patch)
tree22fb1524aada5faa6f8c09a25115b6d136d4b703 /scripts
parentd05e1a3852c05dae90f53be6311225141e749a9c (diff)
downloadcontext-235971ff07f0f5d7a3a3ce705043094bc816b432.tar.gz
beta 2012.05.23 23:31
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtxrun.lua18
-rw-r--r--scripts/context/stubs/mswin/mtxrun.lua18
-rw-r--r--scripts/context/stubs/unix/mtxrun18
3 files changed, 45 insertions, 9 deletions
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
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 7948922f7..9d0edf689 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/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
diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun
index 7948922f7..9d0edf689 100644
--- a/scripts/context/stubs/unix/mtxrun
+++ b/scripts/context/stubs/unix/mtxrun
@@ -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