2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

* utils/paths.jam

(glob): Accept several directories, like builtin GLOB does.


[SVN r22050]
This commit is contained in:
Vladimir Prus
2004-01-29 13:49:14 +00:00
parent 23a7ecb8c0
commit b903dbca2e

View File

@@ -190,9 +190,14 @@ rule pwd ( )
#
# Returns the list of files matching the given pattern in the specified directory.
#
rule glob ( dir : patterns + )
rule glob ( dirs * : patterns + )
{
return [ sequence.transform make : [ GLOB [ native $(dir) ] : $(patterns) ] ] ;
local result ;
for dir in $(dirs)
{
result += [ sequence.transform make : [ GLOB [ native $(dir) ] : $(patterns) ] ] ;
}
return $(result) ;
}
#