diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-03-10 14:36:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-03-10 14:36:00 +0100 |
commit | 748be39b9f88d15159ab8879ff8e9b88e4b8718a (patch) | |
tree | 6bef5e420c41621c8113e0179edac8135264ab52 /tex/context/base/file-job.lua | |
parent | 7b01e5c00c1538ceaabe8a1b818eeec0d5c69da9 (diff) | |
download | context-748be39b9f88d15159ab8879ff8e9b88e4b8718a.tar.gz |
beta 2013.03.10 14:36
Diffstat (limited to 'tex/context/base/file-job.lua')
-rw-r--r-- | tex/context/base/file-job.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tex/context/base/file-job.lua b/tex/context/base/file-job.lua index 533103ec6..b5c4b2b05 100644 --- a/tex/context/base/file-job.lua +++ b/tex/context/base/file-job.lua @@ -823,15 +823,24 @@ function commands.getcommandline() -- has to happen at the tex end in order to e inputfile = basename(inputfile) end + local kindofrun = arguments.kindofrun + local currentrun = arguments.maxnofruns + local maxnofruns = arguments.currentrun + context.setupsystem { [constants.directory] = validstring(arguments.setuppath), [constants.inputfile] = inputfile, [constants.file] = validstring(arguments.result), [constants.random] = validstring(arguments.randomseed), - [constants.n] = validstring(arguments.kindofrun), - [constants.m] = validstring(arguments.currentrun), + -- old: + [constants.n] = validstring(kindofrun), + [constants.m] = validstring(currentrun), } + environment.kindofrun = tonumber(kindofrun) or 0 + environment.maxnofruns = tonumber(maxnofruns) or 0 + environment.currentrun = tonumber(currentrun) or 0 + if validstring(arguments.arguments) then context.setupenv { arguments.arguments } end |