summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-context.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-22 13:40:16 +0200
committerMarius <mariausol@gmail.com>2013-03-22 13:40:16 +0200
commitfb1c4d662cdfd0e42a6627bedf501ba40ab0aba4 (patch)
tree9b0d803247eea299e15b99516a9c64aa0d41f389 /scripts/context/lua/mtx-context.lua
parentc6b55838820ffd27a05d45364f956f87f089c3ee (diff)
downloadcontext-fb1c4d662cdfd0e42a6627bedf501ba40ab0aba4.tar.gz
beta 2013.03.22 12:06
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r--scripts/context/lua/mtx-context.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua
index 43180ddae..1035267e0 100644
--- a/scripts/context/lua/mtx-context.lua
+++ b/scripts/context/lua/mtx-context.lua
@@ -744,6 +744,13 @@ function scripts.context.run(ctxdata,filename)
pdf_close(resultname,pdfview)
end
end
+ --
+ -- we could do this when locating the format and exit from luatex when
+ -- there is a version mismatch .. that way we can use stock luatex
+ -- plus mtxrun to run luajittex instead .. this saves a restart but is
+ -- also cleaner as then mtxrun only has to check for a special return
+ -- code (signaling a make + rerun) .. maybe some day
+ --
local okay = statistics.checkfmtstatus(formatfile,a_engine)
if okay ~= true then
report("warning: %s, forcing remake",tostring(okay))