ackbuilder rules files now require absolute paths in external variables

(otherwise commands which change directory don't work).
This commit is contained in:
David Given
2016-07-18 23:16:27 +02:00
parent 523374c36b
commit 2d2497c318
4 changed files with 13 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ end
local function concatpath(...)
local p = table.concat({...}, "/")
return p:gsub("/+", "/"):gsub("^%./", ""):gsub("/%./", "/")
return (p:gsub("/+", "/"):gsub("^%./", ""):gsub("/%./", "/"))
end
local function filenamesof(targets, pattern)
@@ -153,7 +153,7 @@ local function abspath(collection)
end
)
end
local function basename(collection)
return dotocollection(collection,
function(filename)
@@ -648,6 +648,8 @@ local function parse_arguments(argmap, arg)
end
globals = {
posix = posix,
abspath = abspath,
asstring = asstring,
basename = basename,