Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79626 - trunk/tools/build/v2/build
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-20 14:49:08


Author: jurko
Date: 2012-07-20 14:49:07 EDT (Fri, 20 Jul 2012)
New Revision: 79626
URL: http://svn.boost.org/trac/boost/changeset/79626

Log:
Boost Build code cleanup - minor stylistic changes.
Text files modified:
   trunk/tools/build/v2/build/generators.jam | 7 ++-----
   trunk/tools/build/v2/build/project.jam | 3 +--
   2 files changed, 3 insertions(+), 7 deletions(-)

Modified: trunk/tools/build/v2/build/generators.jam
==============================================================================
--- trunk/tools/build/v2/build/generators.jam (original)
+++ trunk/tools/build/v2/build/generators.jam 2012-07-20 14:49:07 EDT (Fri, 20 Jul 2012)
@@ -502,18 +502,15 @@
         # second case -- not sure, but for now take the part up to the last dot
         # too.
         name = [ utility.basename [ $(sources[1]).name ] ] ;
-
         for local s in $(sources[2])
         {
- local n2 = [ utility.basename [ $(s).name ] ] ;
- if $(n2) != $(name)
+ if [ utility.basename [ $(s).name ] ] != $(name)
             {
                 import errors : error : errors.error ;
                 errors.error "$(self.id): source targets have different names: cannot determine target name" ;
             }
         }
- name = [ determine-target-name [ $(sources[1]).name ] ] ;
- return $(name) ;
+ return [ determine-target-name [ $(sources[1]).name ] ] ;
     }
 
     # Constructs targets that are created after consuming 'sources'. The result

Modified: trunk/tools/build/v2/build/project.jam
==============================================================================
--- trunk/tools/build/v2/build/project.jam (original)
+++ trunk/tools/build/v2/build/project.jam 2012-07-20 14:49:07 EDT (Fri, 20 Jul 2012)
@@ -790,8 +790,7 @@
         {
             import errors ;
             errors.user-error Attempt to redeclare already existing project id
- '$(id)'
- location '$(location)' ;
+ '$(id)' location '$(location)' ;
         }
         $(id).jamfile-module = $(project-module) ;
     }


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