summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-context.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2014-07-25 13:15:04 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2014-07-25 13:15:04 +0200
commit769967e166088f76efab91e4a0b84e6d3885182d (patch)
treeadc942fb1eae1967b32621aa4b9a50ed9c90b399 /scripts/context/lua/mtx-context.lua
parenta8d691a06b3cb155f33b01d30c38dfed65cab28d (diff)
downloadcontext-769967e166088f76efab91e4a0b84e6d3885182d.tar.gz
2014-07-25 12:59:00
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r--scripts/context/lua/mtx-context.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua
index 83030e2e7..caf7e2f2a 100644
--- a/scripts/context/lua/mtx-context.lua
+++ b/scripts/context/lua/mtx-context.lua
@@ -285,11 +285,13 @@ local function multipass_copyluafile(jobname,run)
local tuaname, tucname = jobname..".tua", jobname..".tuc"
if validfile(tuaname) then
if run then
- for i=1,10 do
- local tmpname = format("%s-tuc-%02d.tmp",jobname,i)
- if validfile(tmpname) then
- removefile(tmpname)
- report("removing %a",tmpname)
+ if run == 1 then
+ for i=1,10 do
+ local tmpname = format("%s-tuc-%02d.tmp",jobname,i)
+ if validfile(tmpname) then
+ removefile(tmpname)
+ report("removing %a",tmpname)
+ end
end
end
if validfile(tucname) then