2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Minor cleanup...

- Added more files to not scan for help (--help-all)
- Ensure that modules are given to do-scan in alpha order regardless of path location.


[SVN r19900]
This commit is contained in:
Rene Rivera
2003-09-01 16:30:59 +00:00
parent b9e4d182de
commit 119a4fec8a
2 changed files with 74 additions and 20 deletions

View File

@@ -1,10 +1,29 @@
# (C) Copyright David Abrahams 2003.
# (C) Copyright Rene Rivera 2003.
#
# Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
# Boost Software License - Version 1.0 - August 17th, 2003
#
# Permission is hereby granted, free of charge, to any person or organization
# obtaining a copy of the software and accompanying documentation covered by
# this license (the "Software") to use, reproduce, display, distribute,
# execute, and transmit the Software, and to prepare derivative works of the
# Software, and to permit third-parties to whom the Software is furnished to
# do so, all subject to the following:
#
# The copyright notices in the Software and this entire statement, including
# the above license grant, this restriction and the following disclaimer,
# must be included in all copies of the Software, in whole or in part, and
# all derivative works of the Software, unless such copies or derivative
# works are solely in the form of machine-executable object code generated by
# a source language processor.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# This module is the plug-in handler for the --help and --help-.*
# command-line options
@@ -17,7 +36,9 @@ import set ;
# List of possible modules, but which really aren't.
#
.not-modules = boost-build bootstrap site-config test user-config ;
.not-modules =
boost-build bootstrap site-config test user-config
-tools allyourbase boost-base features python stlport testing unit-tests ;
# The help system options are parsed here and handed off to the doc
# module to translate into documentation requests and actions. The
@@ -44,13 +65,19 @@ rule process (
case --help-all :
local path-to-modules = [ modules.peek : BOOST_BUILD_PATH ] ;
path-to-modules ?= . ;
local possible-modules = [ GLOB $(path-to-modules) : *\\.jam ] ;
local not-modules = [ GLOB $(path-to-modules) : *$(.not-modules)\\.jam ] ;
local modules-to-list =
[ sequence.insertion-sort
[ set.difference
[ GLOB $(path-to-modules) : *\\.jam ] :
[ GLOB $(path-to-modules) : $(.not-modules)\\.jam ] ] ] ;
do-scan $(modules-to-list[1--2]) ;
do-scan $(modules-to-list[-1]) : print-help-all ;
[ set.difference $(possible-modules:D=:S=) : $(not-modules:D=:S=) ] ] ;
local modules-to-scan ;
for local m in $(modules-to-list)
{
local module-files = [ GLOB $(path-to-modules) : $(m)\\.jam ] ;
modules-to-scan += $(module-files[1]) ;
}
do-scan $(modules-to-scan[1--2]) ;
do-scan $(modules-to-scan[-1]) : print-help-all ;
did-help = true ;
case --help-enable-* :

View File

@@ -1,10 +1,29 @@
# (C) Copyright David Abrahams 2003.
# (C) Copyright Rene Rivera 2003.
#
# Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
# Boost Software License - Version 1.0 - August 17th, 2003
#
# Permission is hereby granted, free of charge, to any person or organization
# obtaining a copy of the software and accompanying documentation covered by
# this license (the "Software") to use, reproduce, display, distribute,
# execute, and transmit the Software, and to prepare derivative works of the
# Software, and to permit third-parties to whom the Software is furnished to
# do so, all subject to the following:
#
# The copyright notices in the Software and this entire statement, including
# the above license grant, this restriction and the following disclaimer,
# must be included in all copies of the Software, in whole or in part, and
# all derivative works of the Software, unless such copies or derivative
# works are solely in the form of machine-executable object code generated by
# a source language processor.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
# SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
# FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# This module is the plug-in handler for the --help and --help-.*
# command-line options
@@ -17,7 +36,9 @@ import set ;
# List of possible modules, but which really aren't.
#
.not-modules = boost-build bootstrap site-config test user-config ;
.not-modules =
boost-build bootstrap site-config test user-config
-tools allyourbase boost-base features python stlport testing unit-tests ;
# The help system options are parsed here and handed off to the doc
# module to translate into documentation requests and actions. The
@@ -44,13 +65,19 @@ rule process (
case --help-all :
local path-to-modules = [ modules.peek : BOOST_BUILD_PATH ] ;
path-to-modules ?= . ;
local possible-modules = [ GLOB $(path-to-modules) : *\\.jam ] ;
local not-modules = [ GLOB $(path-to-modules) : *$(.not-modules)\\.jam ] ;
local modules-to-list =
[ sequence.insertion-sort
[ set.difference
[ GLOB $(path-to-modules) : *\\.jam ] :
[ GLOB $(path-to-modules) : $(.not-modules)\\.jam ] ] ] ;
do-scan $(modules-to-list[1--2]) ;
do-scan $(modules-to-list[-1]) : print-help-all ;
[ set.difference $(possible-modules:D=:S=) : $(not-modules:D=:S=) ] ] ;
local modules-to-scan ;
for local m in $(modules-to-list)
{
local module-files = [ GLOB $(path-to-modules) : $(m)\\.jam ] ;
modules-to-scan += $(module-files[1]) ;
}
do-scan $(modules-to-scan[1--2]) ;
do-scan $(modules-to-scan[-1]) : print-help-all ;
did-help = true ;
case --help-enable-* :