Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51394 - trunk/tools/build/v2/example/generate
From: jurko.gospodnetic_at_[hidden]
Date: 2009-02-22 11:56:04


Author: jurko
Date: 2009-02-22 11:56:04 EST (Sun, 22 Feb 2009)
New Revision: 51394
URL: http://svn.boost.org/trac/boost/changeset/51394

Log:
Cleaned up the Boost Build example/generate/jamroot.jam example source file. No functional changes.
Text files modified:
   trunk/tools/build/v2/example/generate/jamroot.jam | 34 +++++++++++++++-------------------
   1 files changed, 15 insertions(+), 19 deletions(-)

Modified: trunk/tools/build/v2/example/generate/jamroot.jam
==============================================================================
--- trunk/tools/build/v2/example/generate/jamroot.jam (original)
+++ trunk/tools/build/v2/example/generate/jamroot.jam 2009-02-22 11:56:04 EST (Sun, 22 Feb 2009)
@@ -2,32 +2,28 @@
 # Distributed under the Boost Software License, Version 1.0.
 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
 
-import common ;
 import "class" : new ;
+import common ;
 
 rule generate-example ( project name : property-set : sources * )
 {
     local result ;
     for local s in $(sources)
     {
- #local ea = [ $(s).action ] ;
- #local ep = [ $(ea).properties ] ;
-
- # Create a new action, that takes the source target
- # and runs 'common.copy' comamnd on it.
- local a = [
- new non-scanning-action $(s) : common.copy : $(property-set) ] ;
-
- local source-name = [ $(s).name ] ;
-
- # Create the target to represent the result of the action.
- # The target has the name that was specified in Jamfile
- # and passed here via the 'name' parameter,
- # and the same type and project as the source.
- result += [ new file-target $(name)
- : [ $(s).type ]
- : $(project)
- : $(a) ] ;
+ #local source-name = [ $(s).name ] ;
+ #local source-action = [ $(s).action ] ;
+ #local source-properties = [ $(source-action).properties ] ;
+
+ # Create a new action, that takes the source target and runs the
+ # 'common.copy' command on it.
+ local a = [ new non-scanning-action $(s) : common.copy : $(property-set)
+ ] ;
+
+ # Create a target to represent the action result. Uses the target name
+ # passed here via the 'name' parameter and the same type and project as
+ # the source.
+ result += [ new file-target $(name) : [ $(s).type ] : $(project) : $(a)
+ ] ;
     }
     return $(result) ;
 }


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