summaryrefslogtreecommitdiff
path: root/tex/context/base/grph-fil.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
committerMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
commit69d2352af4b60929b37fc49f3bdb263977016244 (patch)
treedb5eb11398e345dfa23b4c4500fb93575d2afb7c /tex/context/base/grph-fil.lua
parentc18f7cbe51449a611ea1819fedd9a4ff18529b7d (diff)
downloadcontext-69d2352af4b60929b37fc49f3bdb263977016244.tar.gz
stable 2012.05.30 11:26
Diffstat (limited to 'tex/context/base/grph-fil.lua')
-rw-r--r--tex/context/base/grph-fil.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/tex/context/base/grph-fil.lua b/tex/context/base/grph-fil.lua
index 9cdda13e0..1ec88b487 100644
--- a/tex/context/base/grph-fil.lua
+++ b/tex/context/base/grph-fil.lua
@@ -6,13 +6,13 @@ if not modules then modules = { } end modules ['grph-fil'] = {
license = "see context related readme files"
}
-local type = type
+local format, concat = string.format, table.concat
+
+local trace_run = false trackers.register("graphic.runfile",function(v) trace_run = v end)
-local trace_run = false trackers.register("graphic.runfile",function(v) trace_run = v end)
local report_run = logs.reporter("graphics","run")
--- Historically running files is part of graphics processing, so this is why it
--- sits here but is part of the job namespace.
+-- this code will move
local allocate = utilities.storage.allocate
@@ -22,7 +22,6 @@ local tobesaved = allocate()
local jobfiles = {
collected = collected,
tobesaved = tobesaved,
- forcerun = false, -- maybe a directive some day
}
job.files = jobfiles
@@ -34,6 +33,8 @@ end
job.register('job.files.collected', tobesaved, initializer)
+jobfiles.forcerun = false
+
function jobfiles.run(name,action)
local oldchecksum = collected[name]
local newchecksum = file.checksum(name)