forked from boostorg/smart_ptr
Guard against redef of asciidoctor in common b2.
This commit is contained in:
@ -9,23 +9,26 @@ import scanner ;
|
|||||||
import generators ;
|
import generators ;
|
||||||
import boostbook ;
|
import boostbook ;
|
||||||
|
|
||||||
# File type
|
if ! [ type.registered ASCIIDOC ]
|
||||||
|
|
||||||
type.register ASCIIDOC : asciidoc adoc ;
|
|
||||||
|
|
||||||
# Define dependency scanner
|
|
||||||
|
|
||||||
class asciidoc-scanner : common-scanner
|
|
||||||
{
|
{
|
||||||
rule pattern ( )
|
# File type
|
||||||
|
|
||||||
|
type.register ASCIIDOC : asciidoc adoc ;
|
||||||
|
|
||||||
|
# Define dependency scanner
|
||||||
|
|
||||||
|
class asciidoc-scanner : common-scanner
|
||||||
{
|
{
|
||||||
return "include::([^[]+)\\[" ;
|
rule pattern ( )
|
||||||
|
{
|
||||||
|
return "include::([^[]+)\\[" ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scanner.register asciidoc-scanner : include ;
|
||||||
|
type.set-scanner ASCIIDOC : asciidoc-scanner ;
|
||||||
}
|
}
|
||||||
|
|
||||||
scanner.register asciidoc-scanner : include ;
|
|
||||||
type.set-scanner ASCIIDOC : asciidoc-scanner ;
|
|
||||||
|
|
||||||
# Define generators
|
# Define generators
|
||||||
|
|
||||||
generators.register-standard asciidoctor.asciidoc-to-html : ASCIIDOC : HTML ;
|
generators.register-standard asciidoctor.asciidoc-to-html : ASCIIDOC : HTML ;
|
||||||
|
Reference in New Issue
Block a user