mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Fixed find-jamfile prunning to given directory root.
[SVN r13630]
This commit is contained in:
@@ -222,6 +222,10 @@ local rule find-jamfile (
|
||||
# Normalize the paths of each file found.
|
||||
#
|
||||
local jamfile-found = ;
|
||||
if $(parent-root)
|
||||
{
|
||||
parent-root = [ os.path.make $(parent-root) ] ;
|
||||
}
|
||||
for local jamfile in $(jamfile-glob)
|
||||
{
|
||||
local normalized = [ os.path.make $(jamfile) ] ;
|
||||
@@ -231,7 +235,7 @@ local rule find-jamfile (
|
||||
# Filter out if the found file is above the target parent root.
|
||||
if $(parent-root)
|
||||
{
|
||||
if ! [ MATCH "$(parent-root)\\$(SLASH)(.*)" : $(normalized) ]
|
||||
if ! [ MATCH "$(parent-root)\\/(.*)" : $(normalized) ]
|
||||
{
|
||||
normalized = ;
|
||||
}
|
||||
|
||||
@@ -222,6 +222,10 @@ local rule find-jamfile (
|
||||
# Normalize the paths of each file found.
|
||||
#
|
||||
local jamfile-found = ;
|
||||
if $(parent-root)
|
||||
{
|
||||
parent-root = [ os.path.make $(parent-root) ] ;
|
||||
}
|
||||
for local jamfile in $(jamfile-glob)
|
||||
{
|
||||
local normalized = [ os.path.make $(jamfile) ] ;
|
||||
@@ -231,7 +235,7 @@ local rule find-jamfile (
|
||||
# Filter out if the found file is above the target parent root.
|
||||
if $(parent-root)
|
||||
{
|
||||
if ! [ MATCH "$(parent-root)\\$(SLASH)(.*)" : $(normalized) ]
|
||||
if ! [ MATCH "$(parent-root)\\/(.*)" : $(normalized) ]
|
||||
{
|
||||
normalized = ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user