summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex b/Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex
index b798b3f8d16..d29f1d07ce2 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex
+++ b/Master/texmf-dist/tex/context/base/mkiv/mtx-context-copy.tex
@@ -56,11 +56,17 @@
\startluacode
+ local find = string.find
+
if #document.files == 0 then
context("no files given")
else
- for _, filename in ipairs(document.files) do
- if not string.find(filename,"^mtx%-context%-") then
+ 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 find(filename,"^mtx%-context%-") and not find(filename,"^context%-extra") then
logs.report("copy",filename)
context.getfiguredimensions
{ filename }