[latex3-commits] [git/LaTeX3-latex3-l3build] master: Include dot files in tree() (fixes #30) (b59e9a5)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Apr 7 17:55:59 CEST 2018


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

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

commit b59e9a5afb36db7c9c25e290d9fc43aa6d695dd6
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Apr 7 16:55:59 2018 +0100

    Include dot files in tree() (fixes #30)


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

b59e9a5afb36db7c9c25e290d9fc43aa6d695dd6
 l3build-file-functions.lua |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index a8c2435..83b4bfb 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -283,9 +283,7 @@ function tree(path, glob)
       for _, file in ipairs(filelist(dir, pattern)) do
         local fullpath = path .. "/" .. file
         if file ~= "." and file ~= ".." and
-          fullpath ~= builddir and
-          (sub(pattern, 1, 1) == "."
-            or sub(file, 1, 1) ~= ".")
+          fullpath ~= builddir
         then
           local fulldir = dir .. "/" .. file
           if criterion(fulldir) then





More information about the latex3-commits mailing list