summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mtx-context-copy.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-12-15 18:53:51 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-12-15 18:53:51 +0100
commit3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0 (patch)
treefaad59ef7e0622a285d35a5484373247cc729bbb /tex/context/base/mkiv/mtx-context-copy.tex
parent2683d42fe95c59c52a9d7c334292d0a5a15c030a (diff)
downloadcontext-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.tex6
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