diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-11-26 16:28:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-11-26 16:28:00 +0100 |
commit | 527274eadad499558bb40b794882661970c5cc67 (patch) | |
tree | fd9ec2fc0bd070a11ce0756eb7b78e5952331dc6 /tex/context/base/core-sys.lua | |
parent | d59c05050d5ff72bb4c9496b06e42648ed5f982e (diff) | |
download | context-527274eadad499558bb40b794882661970c5cc67.tar.gz |
stable 2009.11.26 16:28
Diffstat (limited to 'tex/context/base/core-sys.lua')
-rw-r--r-- | tex/context/base/core-sys.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/core-sys.lua b/tex/context/base/core-sys.lua new file mode 100644 index 000000000..f530896fa --- /dev/null +++ b/tex/context/base/core-sys.lua @@ -0,0 +1,18 @@ +if not modules then modules = { } end modules ['core-sys'] = { + version = 1.001, + comment = "companion to core-sys.mkiv", + author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", + copyright = "PRAGMA ADE / ConTeXt Development Team", + license = "see context related readme files" +} + +local lower, extname, basename, removesuffix = string.lower, file.extname, file.basename, file.removesuffix + +function commands.updatefilenames(inputfilename,outputfilename) + environment.inputfilename = inputfilename or "" + environment.outputfilename = outputfilename or "" + environment.jobfilename = inputfilename or tex.jobname or "" + environment.jobfilesuffix = lower(extname(environment.jobfilename)) + environment.inputfilebarename = removesuffix(basename(inputfilename)) + environment.inputfilesuffix = lower(extname(inputfilename)) +end |