[latex3-commits] [git/l3build] sourcedir: Use tree() not filelist() for CTAN/TDS construction (fb42b19)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Dec 9 16:34:12 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : sourcedir
Link       : https://github.com/latex3/l3build/commit/fb42b195091e14f6748d65187a0c3fc19bb07373

>---------------------------------------------------------------

commit fb42b195091e14f6748d65187a0c3fc19bb07373
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Dec 9 15:34:12 2017 +0000

    Use tree() not filelist() for CTAN/TDS construction
    
    This is needed for nested layouts.


>---------------------------------------------------------------

fb42b195091e14f6748d65187a0c3fc19bb07373
 l3build.lua |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 5dd99d1..cface22 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -903,8 +903,8 @@ function copytds()
     local filenames = { }
     for _,i in ipairs(files) do
       for _,j in ipairs(i) do
-        for _,k in ipairs(filelist(source, j)) do
-          insert(filenames, k)
+        for file,_ in pairs(tree(source, j)) do
+          insert(filenames, file)
         end
       end
     end
@@ -2074,15 +2074,15 @@ function bundlectan()
     local excludelist = { }
     for _,i in ipairs(exclude) do
       for _,j in ipairs(i) do
-        for _,k in ipairs(filelist(dir, j)) do
-          excludelist[k] = true
+        for file,_ in pairs(tree(dir, j)) do
+          excludelist[file] = true
         end
       end
     end
     for _,i in ipairs(include) do
-      for _,j in ipairs(filelist(dir, i)) do
-        if not excludelist[j] then
-          insert(includelist, j)
+      for file,_ in pairs(tree(dir, i)) do
+        if not excludelist[file] then
+          insert(includelist, file)
         end
       end
     end
@@ -2331,8 +2331,8 @@ function setversion()
   local version = options["version"] or -1
   for _,dir in pairs({currentdir, sourcefiledir, docfiledir}) do
     for _,i in pairs(versionfiles) do
-      for _,j in pairs(filelist(dir, i)) do
-        rewrite(dir, j, date, version)
+      for file,_ in pairs(tree(dir, i)) do
+        rewrite(dir, file, date, version)
       end
     end
   end





More information about the latex3-commits mailing list