mirror of
https://github.com/boostorg/build.git
synced 2026-02-10 23:32:20 +00:00
* utils/paths.jam
(glob): Accept several directories, like builtin GLOB does. [SVN r22050]
This commit is contained in:
@@ -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) ;
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user