[latex3-commits] [git/l3build] master: Make a few functions local (a5f283b)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sun Dec 10 10:55:16 CET 2017
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/a5f283bbb173ba207e2d698555922f641f7fbb52
>---------------------------------------------------------------
commit a5f283bbb173ba207e2d698555922f641f7fbb52
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun Dec 10 09:55:16 2017 +0000
Make a few functions local
>---------------------------------------------------------------
a5f283bbb173ba207e2d698555922f641f7fbb52
l3build.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/l3build.lua b/l3build.lua
index c521fe9..f7fd462 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -676,13 +676,13 @@ end
-- table, the keys are paths relative to the given starting path, the values
-- are their counterparts relative to the current working directory.
function tree(path, glob)
- function cropdots(path)
+ local function cropdots(path)
return gsub(gsub(path, "^%./", ""), "/%./", "/")
end
- function always_true()
+ local function always_true()
return true
end
- function is_dir(file)
+ local function is_dir(file)
return lfs_attributes(file)["mode"] == "directory"
end
local dirs = {["."] = cropdots(path)}
More information about the latex3-commits
mailing list