summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-03-24 19:41:20 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-03-24 19:41:20 +0100
commitdc54cea46e02502b4474a0fa132466974a9cc19c (patch)
tree403096f7ba8345b5dea1f925765523f7d52bd645 /scripts
parent576286d4c1349c644bea833c99ec5364668ffc8a (diff)
downloadcontext-dc54cea46e02502b4474a0fa132466974a9cc19c.tar.gz
2017-03-24 19:13:00
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-context.lua2
-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
-rw-r--r--scripts/context/stubs/win64/mtxrun.lua18
5 files changed, 61 insertions, 13 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua
index d29b3c461..cca1001a6 100644
--- a/scripts/context/lua/mtx-context.lua
+++ b/scripts/context/lua/mtx-context.lua
@@ -1265,7 +1265,7 @@ local persistent_runfiles = {
}
local special_runfiles = {
- "-mpgraph", "-mprun", "-temp-"
+ "%-mpgraph", "%-mprun", "%-temp%-"
}
local function purge_file(dfile,cfile)
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua
index 2c0c8bfa4..aea212133 100644
--- a/scripts/context/lua/mtxrun.lua
+++ b/scripts/context/lua/mtxrun.lua
@@ -10240,7 +10240,7 @@ do -- create closure to overcome 200 locals limit
package.loaded["util-sbx"] = package.loaded["util-sbx"] or true
--- original size: 19968, stripped down to: 13570
+-- original size: 20309, stripped down to: 13848
if not modules then modules={} end modules ['util-sbx']={
version=1.001,
@@ -10533,6 +10533,9 @@ local runners={
resultof=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("resultof: %s",command)
+ end
local handle=iopopen(command,"r")
if handle then
local result=handle:read("*all") or ""
@@ -10544,12 +10547,18 @@ local runners={
execute=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("execute: %s",command)
+ end
return osexecute(command)
end
end,
pipeto=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("pipeto: %s",command)
+ end
return iopopen(command,"w")
end
end,
@@ -10608,6 +10617,9 @@ function sandbox.registerrunner(specification)
report("invalid method for runner %a",name)
end
end
+function sandbox.getrunner(name)
+ return name and validrunners[name]
+end
local function suspicious(str)
return (find(str,"[/\\]") or find(command,"%.%.")) and true or false
end
@@ -20236,8 +20248,8 @@ end -- of closure
-- used libraries : l-lua.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua util-lib.lua luat-sta.lua luat-fmt.lua
-- skipped libraries : -
--- original bytes : 836177
--- stripped bytes : 304146
+-- original bytes : 836518
+-- stripped bytes : 304209
-- end library merge
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 2c0c8bfa4..aea212133 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/mtxrun.lua
@@ -10240,7 +10240,7 @@ do -- create closure to overcome 200 locals limit
package.loaded["util-sbx"] = package.loaded["util-sbx"] or true
--- original size: 19968, stripped down to: 13570
+-- original size: 20309, stripped down to: 13848
if not modules then modules={} end modules ['util-sbx']={
version=1.001,
@@ -10533,6 +10533,9 @@ local runners={
resultof=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("resultof: %s",command)
+ end
local handle=iopopen(command,"r")
if handle then
local result=handle:read("*all") or ""
@@ -10544,12 +10547,18 @@ local runners={
execute=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("execute: %s",command)
+ end
return osexecute(command)
end
end,
pipeto=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("pipeto: %s",command)
+ end
return iopopen(command,"w")
end
end,
@@ -10608,6 +10617,9 @@ function sandbox.registerrunner(specification)
report("invalid method for runner %a",name)
end
end
+function sandbox.getrunner(name)
+ return name and validrunners[name]
+end
local function suspicious(str)
return (find(str,"[/\\]") or find(command,"%.%.")) and true or false
end
@@ -20236,8 +20248,8 @@ end -- of closure
-- used libraries : l-lua.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua util-lib.lua luat-sta.lua luat-fmt.lua
-- skipped libraries : -
--- original bytes : 836177
--- stripped bytes : 304146
+-- original bytes : 836518
+-- stripped bytes : 304209
-- end library merge
diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun
index 2c0c8bfa4..aea212133 100644
--- a/scripts/context/stubs/unix/mtxrun
+++ b/scripts/context/stubs/unix/mtxrun
@@ -10240,7 +10240,7 @@ do -- create closure to overcome 200 locals limit
package.loaded["util-sbx"] = package.loaded["util-sbx"] or true
--- original size: 19968, stripped down to: 13570
+-- original size: 20309, stripped down to: 13848
if not modules then modules={} end modules ['util-sbx']={
version=1.001,
@@ -10533,6 +10533,9 @@ local runners={
resultof=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("resultof: %s",command)
+ end
local handle=iopopen(command,"r")
if handle then
local result=handle:read("*all") or ""
@@ -10544,12 +10547,18 @@ local runners={
execute=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("execute: %s",command)
+ end
return osexecute(command)
end
end,
pipeto=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("pipeto: %s",command)
+ end
return iopopen(command,"w")
end
end,
@@ -10608,6 +10617,9 @@ function sandbox.registerrunner(specification)
report("invalid method for runner %a",name)
end
end
+function sandbox.getrunner(name)
+ return name and validrunners[name]
+end
local function suspicious(str)
return (find(str,"[/\\]") or find(command,"%.%.")) and true or false
end
@@ -20236,8 +20248,8 @@ end -- of closure
-- used libraries : l-lua.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua util-lib.lua luat-sta.lua luat-fmt.lua
-- skipped libraries : -
--- original bytes : 836177
--- stripped bytes : 304146
+-- original bytes : 836518
+-- stripped bytes : 304209
-- end library merge
diff --git a/scripts/context/stubs/win64/mtxrun.lua b/scripts/context/stubs/win64/mtxrun.lua
index 2c0c8bfa4..aea212133 100644
--- a/scripts/context/stubs/win64/mtxrun.lua
+++ b/scripts/context/stubs/win64/mtxrun.lua
@@ -10240,7 +10240,7 @@ do -- create closure to overcome 200 locals limit
package.loaded["util-sbx"] = package.loaded["util-sbx"] or true
--- original size: 19968, stripped down to: 13570
+-- original size: 20309, stripped down to: 13848
if not modules then modules={} end modules ['util-sbx']={
version=1.001,
@@ -10533,6 +10533,9 @@ local runners={
resultof=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("resultof: %s",command)
+ end
local handle=iopopen(command,"r")
if handle then
local result=handle:read("*all") or ""
@@ -10544,12 +10547,18 @@ local runners={
execute=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("execute: %s",command)
+ end
return osexecute(command)
end
end,
pipeto=function(...)
local command=validcommand(...)
if command then
+ if trace then
+ report("pipeto: %s",command)
+ end
return iopopen(command,"w")
end
end,
@@ -10608,6 +10617,9 @@ function sandbox.registerrunner(specification)
report("invalid method for runner %a",name)
end
end
+function sandbox.getrunner(name)
+ return name and validrunners[name]
+end
local function suspicious(str)
return (find(str,"[/\\]") or find(command,"%.%.")) and true or false
end
@@ -20236,8 +20248,8 @@ end -- of closure
-- used libraries : l-lua.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua util-lib.lua luat-sta.lua luat-fmt.lua
-- skipped libraries : -
--- original bytes : 836177
--- stripped bytes : 304146
+-- original bytes : 836518
+-- stripped bytes : 304209
-- end library merge