diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-07-25 12:57:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-07-25 12:57:00 +0200 |
commit | 552aceb88e5e5e77a9263144180139a6ac95646c (patch) | |
tree | 33053ce46dd12e14505d457f42f29486f16890eb /scripts/context/lua/mtx-context.lua | |
parent | e80c75029084c0e8a80286f78150b5a2e320e63c (diff) | |
download | context-552aceb88e5e5e77a9263144180139a6ac95646c.tar.gz |
beta 2014.07.25 12:57
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r-- | scripts/context/lua/mtx-context.lua | 12 |
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 |