[latex3-commits] [l3svn] 07/09: exclude the build directory itself
noreply at latex-project.org
noreply at latex-project.org
Sun Jun 25 09:30:27 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 8ab70924c187686958ff3b7408cf0cb0acfb1d53
Author: XZS <d.f.fischer at web.de>
Date: Mon May 22 14:32:40 2017 +0200
exclude the build directory itself
This prevents a bad surprise with wildcards: "*/" can now be used to
specify "all directories" without recursively coping the build path into
a subdirectory of itself, which before invoked an endless recursion
until the file system is filled up.
---
l3build/l3build.lua | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index d2ed706..07fa76a 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -581,10 +581,13 @@ function tree(path, glob)
local critereon = critereon == "/" and is_dir or always_true
function fill(path, dir, table)
for _, file in ipairs(filelist(dir, pattern)) do
- if file ~= "." and file ~= ".." then
+ local fullpath = path .. "/" .. file
+ if file ~= "." and file ~= ".." and
+ fullpath ~= maindir .. "/build"
+ then
local fulldir = dir .. "/" .. file
if critereon(fulldir) then
- table[path .. "/" .. file] = fulldir
+ table[fullpath] = fulldir
end
end
end
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list