summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/l3build/l3build-ctan.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-05 19:44:19 +0000
committerKarl Berry <karl@freefriends.org>2021-05-05 19:44:19 +0000
commit04c30db0018970c69516d748c7b4509240857b65 (patch)
tree60c80f16c8a85519e3e0af6981047bfc3fcd5d29 /Master/texmf-dist/scripts/l3build/l3build-ctan.lua
parent4754ab4e3ed4d6763f26591c2c84be9dfcf54664 (diff)
l3build (5may21)
git-svn-id: svn://tug.org/texlive/trunk@59091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/l3build/l3build-ctan.lua')
-rw-r--r--Master/texmf-dist/scripts/l3build/l3build-ctan.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/l3build/l3build-ctan.lua b/Master/texmf-dist/scripts/l3build/l3build-ctan.lua
index df1daf97287..fd1491dd584 100644
--- a/Master/texmf-dist/scripts/l3build/l3build-ctan.lua
+++ b/Master/texmf-dist/scripts/l3build/l3build-ctan.lua
@@ -1,6 +1,6 @@
--[[
-File l3build-ctan.lua Copyright (C) 2018-2020 The LaTeX3 Project
+File l3build-ctan.lua Copyright (C) 2018-2020 The LaTeX Project
It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -38,12 +38,12 @@ function copyctan()
end
else
for _,filetype in pairs(files) do
- for file,_ in pairs(tree(source,filetype)) do
- local path = splitpath(file)
+ for _,p in ipairs(tree(source,filetype)) do
+ local path = dirname(p.src)
local ctantarget = ctandir .. "/" .. ctanpkg .. "/"
.. source .. "/" .. path
mkdir(ctantarget)
- cp(file,source,ctantarget)
+ cp(p.src,source,ctantarget)
end
end
end