|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64579 - trunk/tools/build/v2/util
From: steven_at_[hidden]
Date: 2010-08-03 13:46:20
Author: steven_watanabe
Date: 2010-08-03 13:46:19 EDT (Tue, 03 Aug 2010)
New Revision: 64579
URL: http://svn.boost.org/trac/boost/changeset/64579
Log:
Make print more robust. This should fix the regression test failure.
Text files modified:
trunk/tools/build/v2/util/print.jam | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Modified: trunk/tools/build/v2/util/print.jam
==============================================================================
--- trunk/tools/build/v2/util/print.jam (original)
+++ trunk/tools/build/v2/util/print.jam 2010-08-03 13:46:19 EDT (Tue, 03 Aug 2010)
@@ -423,7 +423,7 @@
local scanner = [ get-scanner ] ;
local file = [ path.native [ modules.binding $(__name__) ] ] ;
local g = [ MATCH <(.*)> : $(target:G) ] ;
- local dependency-target = $(__file__:G=$(g)-$(target:G=)-$(scanner)) ;
+ local dependency-target = $(__file__:G=$(g:E=)-$(target:G=)-$(scanner)) ;
DEPENDS $(target) : $(dependency-target) ;
SEARCH on $(dependency-target) = $(file:D) ;
ISFILE $(dependency-target) ;
@@ -449,7 +449,11 @@
local base = [ on $(target) return $(base) ] ;
local nl = [ on $(base) return $(nl) ] ;
local text-content = [ on $(base) return $(text-content) ] ;
- local dir = [ path.make [ on $(base) return $(LOCATE) ] ] ;
+ local dir = [ on $(base) return $(LOCATE) ] ;
+ if $(dir)
+ {
+ dir = [ path.make $(dir) ] ;
+ }
local file = [ path.native [ path.join $(dir) $(base:G=) ] ] ;
local actual-content ;
if [ os.name ] = NT
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk