• Home
  • Raw
  • Download

Lines Matching +full:user +full:- +full:config

7 # This module is the plug-in handler for the --help and --help-.*
8 # command-line options
11 import doc : do-scan set-option set-output set-output-file print-help-usage print-help-top ;
22 .not-modules =
23 boost-build bootstrap site-config test user-config
24 -tools allyourbase boost-base features python stlport testing unit-tests ;
30 # --help-disable-<option>
31 # --help-doc-options
32 # --help-enable-<option>
33 # --help-internal
34 # --help-options
35 # --help-usage
36 # --help-output <type>
37 # --help-output-file <file>
38 # --help [<module-or-class>]
45 assert.result --help : MATCH ^(--help).* : $(command) ;
46 local did-help = ;
49 case --help-internal :
50 local path-to-modules = [ modules.peek : BOOST_BUILD_PATH ] ;
51 path-to-modules += . ;
52 local possible-modules = [ GLOB $(path-to-modules) : *\\.jam ] ;
53 local not-modules = [ GLOB $(path-to-modules) : *$(.not-modules)\\.jam ] ;
54 local modules-to-list =
55 [ sequence.insertion-sort
56 [ set.difference $(possible-modules:D=:S=) : $(not-modules:D=:S=) ] ] ;
57 local modules-to-scan ;
58 for local m in $(modules-to-list)
60 local module-files = [ GLOB $(path-to-modules) : $(m)\\.jam ] ;
61 modules-to-scan += $(module-files[1]) ;
63 do-scan $(modules-to-scan) : print-help-all ;
64 did-help = true ;
66 case --help-enable-* :
67 local option = [ MATCH --help-enable-(.*) : $(command) ] ; option = $(option:L) ;
68 set-option $(option) : enabled ;
69 did-help = true ;
71 case --help-disable-* :
72 local option = [ MATCH --help-disable-(.*) : $(command) ] ; option = $(option:L) ;
73 set-option $(option) ;
74 did-help = true ;
76 case --help-output :
77 set-output $(values[1]) ;
78 did-help = true ;
80 case --help-output-file :
81 set-output-file $(values[1]) ;
82 did-help = true ;
84 case --help-doc-options :
85 local doc-module-spec = [ split-symbol doc ] ;
86 do-scan $(doc-module-spec[1]) : print-help-options ;
87 did-help = true ;
89 case --help-options :
90 print-help-usage ;
92 local plugin-dir = options ;
93 local option-files = [ GLOB $(plugin-dir:D=$(BOOST_BUILD_PATH)) : *.jam ] ;
94 if $(option-files)
96 for local file in $(option-files)
98 do-scan $(file) : print-help-options ;
101 did-help = true ;
103 case --help :
107 local spec-parts = [ split-symbol $(spec) ] ;
108 if $(spec-parts)
110 if $(spec-parts[2])
112 do-scan $(spec-parts[1]) : print-help-classes $(spec-parts[2]) ;
113 do-scan $(spec-parts[1]) : print-help-rules $(spec-parts[2]) ;
114 do-scan $(spec-parts[1]) : print-help-variables $(spec-parts[2]) ;
118 do-scan $(spec-parts[1]) : print-help-module ;
134 local project-file = [ path.glob . : $(names) ] ;
135 if ! $(project-file)
137 project-file = [ path.glob-in-parents . : $(names) ] ;
140 for local p in $(project-file)
142 do-scan $(p) : print-help-project $(p) ;
145 # Next any user-config help.
146 local user-path = [ os.home-directories ] [ os.environ BOOST_BUILD_PATH ] ;
147 local user-config = [ GLOB $(user-path) : user-config.jam ] ;
148 if $(user-config)
150 do-scan $(user-config[1]) : print-help-config user $(user-config[1]) ;
153 # Next any site-config help.
154 local site-config = [ GLOB $(user-path) : site-config.jam ] ;
155 if $(site-config)
157 do-scan $(site-config[1]) : print-help-config site $(site-config[1]) ;
161 print-help-top ;
163 did-help = true ;
165 if $(did-help)
170 return $(did-help) ;
175 local rule split-symbol (
179 local path-to-modules = [ modules.peek : BOOST_BUILD_PATH ] ;
180 path-to-modules += . ;
181 local module-name = $(symbol) ;
182 local symbol-name = ;
186 local module-path = [ GLOB $(path-to-modules) : $(module-name)\\.jam ] ;
187 if $(module-path)
189 # The 'module-name' in fact refers to module. Return the full
191 # rule is already module, 'symbol-name' will be empty. Otherwise,
195 result = $(module-path[1]) $(symbol-name) ;
199 if ! $(module-name:S)
201 result = - ;
205 local next-symbol-part = [ MATCH ^.(.*) : $(module-name:S) ] ;
206 if $(symbol-name)
208 symbol-name = $(next-symbol-part).$(symbol-name) ;
212 symbol-name = $(next-symbol-part) ;
214 module-name = $(module-name:B) ;
218 if $(result) != -