[latex3-commits] [git/l3build] master: Use tree() not filelist() for CTAN/TDS construction (9f5f00b)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 11 13:52:34 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/9f5f00bdc4a933e1bbd4d7fa094ae1f17b0b16e7

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

commit 9f5f00bdc4a933e1bbd4d7fa094ae1f17b0b16e7
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.


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

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

diff --git a/l3build.lua b/l3build.lua
index bd43800..1184198 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