From ca889e05f7bdf01e2828d79cd9adadd0bf48f2e7 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 2 May 2002 17:08:41 +0000 Subject: [PATCH] Account for "normalized path" bugs [SVN r13622] --- new/project.jam | 11 +++++++---- v2/build/project.jam | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/new/project.jam b/new/project.jam index d43c20636..67a478bb9 100644 --- a/new/project.jam +++ b/new/project.jam @@ -216,13 +216,13 @@ local rule find-jamfile ( local jamfile-found = ; for local jamfile in $(jamfile-glob) { - local normalized = $(jamfile) ; - if ! [ os.path.is_rooted $(jamfile) ] + local normalized = [ os.path.make $(jamfile) ] ; + if ! [ os.path.is_rooted $(normalized) ] { local root-path = [ os.path.parent [ os.path.make [ modules.binding [ CALLER_MODULE ] ] ] ] ; normalized = - [ os.path.native [ os.path.root_relative_path $(jamfile) $(root-path) ] ] ; + [ os.path.native [ os.path.root_relative_path $(normalized) $(root-path) ] ] ; } # Filter out if the found file is above the target parent root. @@ -234,7 +234,10 @@ local rule find-jamfile ( } } - jamfile-found += $(normalized) ; + if $(normalized) + { + jamfile-found += [ os.path.native $(normalized) ] ; + } } return $(jamfile-found) ; diff --git a/v2/build/project.jam b/v2/build/project.jam index d43c20636..67a478bb9 100644 --- a/v2/build/project.jam +++ b/v2/build/project.jam @@ -216,13 +216,13 @@ local rule find-jamfile ( local jamfile-found = ; for local jamfile in $(jamfile-glob) { - local normalized = $(jamfile) ; - if ! [ os.path.is_rooted $(jamfile) ] + local normalized = [ os.path.make $(jamfile) ] ; + if ! [ os.path.is_rooted $(normalized) ] { local root-path = [ os.path.parent [ os.path.make [ modules.binding [ CALLER_MODULE ] ] ] ] ; normalized = - [ os.path.native [ os.path.root_relative_path $(jamfile) $(root-path) ] ] ; + [ os.path.native [ os.path.root_relative_path $(normalized) $(root-path) ] ] ; } # Filter out if the found file is above the target parent root. @@ -234,7 +234,10 @@ local rule find-jamfile ( } } - jamfile-found += $(normalized) ; + if $(normalized) + { + jamfile-found += [ os.path.native $(normalized) ] ; + } } return $(jamfile-found) ;