2
0
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:
Rene Rivera
2002-05-03 04:43:37 +00:00
parent 3a22ec5a62
commit 43825413c7
2 changed files with 10 additions and 2 deletions

View File

@@ -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 = ;
}

View File

@@ -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 = ;
}