Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49851 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2008-11-20 12:59:00


Author: vladimir_prus
Date: 2008-11-20 12:58:59 EST (Thu, 20 Nov 2008)
New Revision: 49851
URL: http://svn.boost.org/trac/boost/changeset/49851

Log:
Emit clear error when more than one possile Jamfile is found in a directory
Text files modified:
   trunk/tools/build/v2/build/project.jam | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/build/project.jam
==============================================================================
--- trunk/tools/build/v2/build/project.jam (original)
+++ trunk/tools/build/v2/build/project.jam 2008-11-20 12:58:59 EST (Thu, 20 Nov 2008)
@@ -286,7 +286,13 @@
     {
         jamfile-to-load = [ find-jamfile $(dir) ] ;
     }
-
+
+ if $(jamfile-to-load[2])
+ {
+ errors.error "Multiple Jamfiles found at '$(dir)'"
+ : "Filenames are: " $(jamfile-to-load:D=) ;
+ }
+
     # The module of the Jamfile.
     #
     local jamfile-module = [ module-name [ path.parent $(jamfile-to-load) ] ] ;


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