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

Move handling of <auto-index>on to the generator requirements.

[SVN r81026]
This commit is contained in:
Steven Watanabe
2012-10-20 16:35:56 +00:00
parent 3aebb6b5da
commit 6005bcfb75

View File

@@ -157,15 +157,7 @@ class auto-index-generator : generator
#ECHO "binary = " $(auto-index-binary) ;
#ECHO "dependencies = " $(auto-index-binary-dependencies) ;
if [ $(property-set).get <auto-index> ] = "on"
{
return [ generator.run $(project) $(name) : $(property-set) : $(sources) ] ;
}
else
{
return [ generators.construct $(project) $(name) : DOCBOOK : $(property-set)
: $(sources) ] ;
}
return [ generator.run $(project) $(name) : $(property-set) : $(sources) ] ;
}
}
@@ -192,7 +184,7 @@ rule init (
toolset.flags auto-index.auto-index AI-COMMAND <auto-index-binary> ;
toolset.flags auto-index.auto-index AI-DEPENDENCIES <auto-index-binary-dependencies> ;
generators.register [ class.new auto-index-generator auto-index.auto-index : DOCBOOK : DOCBOOK(%.auto_index) ] ;
generators.register [ class.new auto-index-generator auto-index.auto-index : DOCBOOK : DOCBOOK(%.auto_index) : <auto-index>on ] ;
generators.override auto-index.auto-index : boostbook.boostbook-to-docbook ;
rule auto-index ( target : source : properties * )