summaryrefslogtreecommitdiff
path: root/tex/context/base/core-sys.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-09-11 20:36:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-09-11 20:36:00 +0200
commit6547dd194151a3ae9b7bc14a2c2e34933ee5f705 (patch)
tree18ea0f98bce43b26d4276cd366ab98c474e20ed0 /tex/context/base/core-sys.lua
parentb42e052e7d5c459d3242184be41d5f23761d6930 (diff)
downloadcontext-6547dd194151a3ae9b7bc14a2c2e34933ee5f705.tar.gz
beta 2012.09.11 20:36
Diffstat (limited to 'tex/context/base/core-sys.lua')
-rw-r--r--tex/context/base/core-sys.lua18
1 files changed, 14 insertions, 4 deletions
diff --git a/tex/context/base/core-sys.lua b/tex/context/base/core-sys.lua
index cf027e1c6..d68ef05d7 100644
--- a/tex/context/base/core-sys.lua
+++ b/tex/context/base/core-sys.lua
@@ -33,15 +33,25 @@ function commands.updatefilenames(jobname,fulljobname,inputfilename,outputfilena
local outputfilename = outputfilename or environment.inputfilebarename or ""
environment.outputfilename = outputfilename
--
- commands.writestatus("files",format("jobname: %q, input: %q, result: %q, suffix: %s",
- jobfilename,inputfilename,outputfilename,inputfilesuffix))
+ local runpath = resolvers.cleanpath(lfs.currentdir())
+ environment.runpath = runpath
+ --
+ statistics.register("running on path", function()
+ return environment.runpath
+ end)
+ --
+ statistics.register("job file properties", function()
+ return format("jobname: %s, input: %s, suffix: %s",jobfilename,inputfilename,inputfilesuffix)
+ end)
+ --
end
statistics.register("result saved in file", function()
-- suffix will be fetched from backend
+ local outputfilename = environment.outputfilename or environment.jobname or tex.jobname or "<unset>"
if tex.pdfoutput > 0 then
- return format( "%s.%s, compresslevel %s, objectcompreslevel %s", environment.outputfilename, "pdf", tex.pdfcompresslevel, tex.pdfobjcompresslevel)
+ return format( "%s.%s, compresslevel %s, objectcompreslevel %s",outputfilename,"pdf",tex.pdfcompresslevel, tex.pdfobjcompresslevel)
else
- return format( "%s.%s", environment.outputfilename, "dvi") -- hard to imagine
+ return format( "%s.%s",outputfilename,"dvi") -- hard to imagine
end
end)