Boost logo

Boost-Commit :

From: jurko.gospodnetic_at_[hidden]
Date: 2008-08-29 20:21:59


Author: jurko
Date: 2008-08-29 20:21:59 EDT (Fri, 29 Aug 2008)
New Revision: 48467
URL: http://svn.boost.org/trac/boost/changeset/48467

Log:
Minor stylistic changes in the tools/package.jam Boost Build module.
Text files modified:
   trunk/tools/build/v2/tools/package.jam | 119 ++++++++++++++++++++-------------------
   1 files changed, 60 insertions(+), 59 deletions(-)

Modified: trunk/tools/build/v2/tools/package.jam
==============================================================================
--- trunk/tools/build/v2/tools/package.jam (original)
+++ trunk/tools/build/v2/tools/package.jam 2008-08-29 20:21:59 EDT (Fri, 29 Aug 2008)
@@ -1,92 +1,93 @@
-# Copyright (c) 2005 Vladimir Prus.
-# Copyright 2006 Rene Rivera.
+# Copyright (c) 2005 Vladimir Prus.
+# Copyright 2006 Rene Rivera.
 #
-# Use, modification and distribution is subject to the Boost Software
-# License Version 1.0. (See accompanying file LICENSE_1_0.txt or
-# http://www.boost.org/LICENSE_1_0.txt)
-
-# Provides mechanism for installing whole packages into a specific
-# directory structure. This is opposed to the 'install' rule, that
-# installs a number of targets to a single directory, and does not
-# care about directory structure at all.
+# Use, modification and distribution is subject to the Boost Software
+# License Version 1.0. (See accompanying file LICENSE_1_0.txt or
+# http://www.boost.org/LICENSE_1_0.txt)
+
+# Provides mechanism for installing whole packages into a specific directory
+# structure. This is opposed to the 'install' rule, that installs a number of
+# targets to a single directory, and does not care about directory structure at
+# all.
 
-# Example usage:
+# Example usage:
 #
-# package.install boost : <properties>
-# : <binaries>
-# : <libraries>
-# : <headers>
-# ;
+# package.install boost : <properties>
+# : <binaries>
+# : <libraries>
+# : <headers>
+# ;
 #
-# This will install binaries, libraries and headers to the 'proper' location, given
-# by command line options --prefix, --exec-prefix, --bindir, --libdir and
-# --includedir.
+# This will install binaries, libraries and headers to the 'proper' location,
+# given by command line options --prefix, --exec-prefix, --bindir, --libdir and
+# --includedir.
 #
-# The rule is just a convenient wrapper, avoiding the need to define several
-# 'install' targets.
+# The rule is just a convenient wrapper, avoiding the need to define several
+# 'install' targets.
 #
-# The only install-related feature is <install-source-root>. It will apply to
-# headers only and if present, paths of headers relatively to source root will be
-# retained after installing. If it's not specified, then "." is assumed, so
-# relative paths in headers are always preserved.
+# The only install-related feature is <install-source-root>. It will apply to
+# headers only and if present, paths of headers relatively to source root will
+# be retained after installing. If it is not specified, then "." is assumed, so
+# relative paths in headers are always preserved.
 
-import project ;
-import targets ;
 import "class" : new ;
 import option ;
-import stage ;
+import project ;
 import property ;
+import stage ;
+import targets ;
+
 
 rule install ( name : requirements * : binaries * : libraries * : headers * )
 {
- # If <install-source-root> is not specified, all headers are installed
- # to prefix/include, no matter what their relative path is. Sometimes
- # that's what needed.
- local install-source-root
- = [ property.select <install-source-root> : $(requirements) ] ;
+ # If <install-source-root> is not specified, all headers are installed to
+ # prefix/include, no matter what their relative path is. Sometimes that is
+ # what is needed.
+ local install-source-root = [ property.select <install-source-root> :
+ $(requirements) ] ;
     requirements = [ property.change $(requirements) : <install-source-root> ] ;
-
- #
- local install-header-subdir
- = [ property.select <install-header-subdir> : $(requirements) ] ;
+
+ local install-header-subdir = [ property.select <install-header-subdir> :
+ $(requirements) ] ;
     install-header-subdir = /$(install-header-subdir:G=) ;
     install-header-subdir ?= "" ;
- requirements = [ property.change $(requirements) : <install-header-subdir> ] ;
-
- # First, figure out all locations. Use the default if no prefix option given.
- local prefix = [ option.get prefix :
- [ property.select <install-default-prefix> : $(requirements) ] ] ;
- requirements = [ property.change $(requirements) : <install-default-prefix> ] ;
+ requirements = [ property.change $(requirements) : <install-header-subdir> ]
+ ;
+
+ # First, figure out all locations. Use the default if no prefix option
+ # given.
+ local prefix = [ option.get prefix : [ property.select
+ <install-default-prefix> : $(requirements) ] ] ;
+ requirements = [ property.change $(requirements) : <install-default-prefix>
+ ] ;
     # Or some likely defaults if neither is given.
     if ! $(prefix)
     {
         if [ modules.peek : NT ] { prefix = C:\\$(name) ; }
- else if [ modules.peek : UNIX ] { prefix = /usr/local ; }
+ else if [ modules.peek : UNIX ] { prefix = /usr/local ; }
     }
 
- # architecture dependent files
+ # Architecture dependent files.
     local exec-locate = [ option.get exec-prefix : $(prefix) ] ;
-
- # binaries
+
+ # Binaries.
     local bin-locate = [ option.get bindir : $(prefix)/bin ] ;
 
- # object code libraries
+ # Object code libraries.
     local lib-locate = [ option.get libdir : $(prefix)/lib ] ;
 
- # source header files
+ # Source header files.
     local include-locate = [ option.get includedir : $(prefix)/include ] ;
 
- stage.install $(name)-bin : $(binaries) : $(requirements) <location>$(bin-locate) ;
- stage.install $(name)-lib :
- $(binaries) $(libraries)
- : $(requirements) <location>$(lib-locate)
- <install-dependencies>on <install-type>LIB
- ;
- stage.install $(name)-headers : $(headers) : $(requirements)
- <location>$(include-locate)$(install-header-subdir)
- <install-source-root>$(install-source-root) ;
+ stage.install $(name)-bin : $(binaries) : $(requirements)
+ <location>$(bin-locate) ;
+ stage.install $(name)-lib : $(binaries) $(libraries) : $(requirements)
+ <location>$(lib-locate) <install-dependencies>on <install-type>LIB ;
+ stage.install $(name)-headers : $(headers) : $(requirements)
+ <location>$(include-locate)$(install-header-subdir)
+ <install-source-root>$(install-source-root) ;
     alias $(name) : $(name)-bin $(name)-lib $(name)-headers ;
-
+
     local c = [ project.current ] ;
     local project-module = [ $(c).project-module ] ;
     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