diff options
author | Marius <mariausol@gmail.com> | 2011-01-31 00:18:53 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-01-31 00:18:53 +0200 |
commit | 3019c4ccfb0d984b45670a86d2400a6aacfbaa68 (patch) | |
tree | 92edfef9689a49ee95bc35cbe875a5e0ed0c7121 /scripts/context/lua/mtx-context.lua | |
parent | fcf2bf760b1f48c1ba2f5d0a3eed5dacb2751e95 (diff) | |
download | context-3019c4ccfb0d984b45670a86d2400a6aacfbaa68.tar.gz |
beta 2011.01.18 19:34
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r-- | scripts/context/lua/mtx-context.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 6e4eea39f..12ab2ecd8 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -1215,6 +1215,8 @@ local function touch(name,pattern) end end +local touchables = { "cont-new.mkii", "cont-new.mkiv" } + function scripts.context.touch() if environment.argument("expert") then local done, oldversion, newversion, foundname = touch("context.tex", "(\\edef\\contextversion{)(.-)(})") @@ -1222,13 +1224,11 @@ function scripts.context.touch() logs.simple("old version : %s", oldversion) logs.simple("new version : %s", newversion) logs.simple("touched file: %s", foundname) - local ok, _, _, foundname = touch("cont-new.tex", "(\\newcontextversion{)(.-)(})") - if ok then - logs.simple("touched file: %s", foundname) - end - local ok, _, _, foundname = touch("cont-xp.tex", "(\\edef\\contextversion{)(.-)(})") - if ok then - logs.simple("touched file: %s", foundname) + for i=1,#touchables do + local ok, _, _, foundname = touch(touchables[i], "(\\newcontextversion{)(.-)(})") + if ok then + logs.simple("touched file: %s", foundname) + end end end end |