diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-12-15 18:53:51 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-12-15 18:53:51 +0100 |
commit | 3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0 (patch) | |
tree | faad59ef7e0622a285d35a5484373247cc729bbb /tex/context/base/mkiv/mtx-context-copy.tex | |
parent | 2683d42fe95c59c52a9d7c334292d0a5a15c030a (diff) | |
download | context-3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0.tar.gz |
2019-12-15 17:34:00
Diffstat (limited to 'tex/context/base/mkiv/mtx-context-copy.tex')
-rw-r--r-- | tex/context/base/mkiv/mtx-context-copy.tex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/mtx-context-copy.tex b/tex/context/base/mkiv/mtx-context-copy.tex index b798b3f8d..8e4336609 100644 --- a/tex/context/base/mkiv/mtx-context-copy.tex +++ b/tex/context/base/mkiv/mtx-context-copy.tex @@ -59,7 +59,11 @@ if #document.files == 0 then context("no files given") else - for _, filename in ipairs(document.files) do + if document.arguments.pattern then + document.files = dir.glob(document.arguments.pattern) + end + for i=1,#document.files do + local filename = document.files[i] if not string.find(filename,"^mtx%-context%-") then logs.report("copy",filename) context.getfiguredimensions |