diff options
Diffstat (limited to 'tex/context/base/data-ctx.lua')
-rw-r--r-- | tex/context/base/data-ctx.lua | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/tex/context/base/data-ctx.lua b/tex/context/base/data-ctx.lua index adf334d8e..345e9c741 100644 --- a/tex/context/base/data-ctx.lua +++ b/tex/context/base/data-ctx.lua @@ -6,38 +6,4 @@ if not modules then modules = { } end modules ['data-ctx'] = { license = "see context related readme files" } -local format = string.format - -local report_dump = logs.reporter("resolvers","dump") - -local resolvers = resolvers - -local function saveusedfilesin_trees() - local jobname = environment.jobname - if not jobname or jobname == "" then jobname = "luatex" end - local filename = file.replacesuffix(jobname,'jlg') - local f = io.open(filename,'w') - if f then - f:write("<?xml version='1.0' standalone='yes'?>\n") - f:write("<rl:job>\n") - f:write(format("\t<rl:jobname>%s</rl:jobname>\n",jobname)) - f:write(format("\t<rl:contextversion>%s</rl:contextversion>\n",environment.version)) - local found = resolvers.instance.foundintrees - local sorted = table.sortedkeys(found) - if #sorted > 0 then - f:write("\t<rl:files>\n") - for k=1,#sorted do - local v = sorted[k] - f:write(format("\t\t<rl:file n='%s'>%s</rl:file>\n",found[v],v)) - end - f:write("\t</rl:files>\n") - else - f:write("\t<rl:files/>\n") - end - f:write("</rl:job>\n") - f:close() - report_dump("saving used tree files in '%s'",filename) - end -end - -directives.register("system.dumpfiles", function() saveusedfilesintrees() end) +-- empty |