Merge pull request #42 from grafikrobot/patch-1

Guard against redef of asciidoctor in common b2.
This commit is contained in:
Peter Dimov
2017-10-19 03:02:10 +03:00
committed by GitHub

View File

@@ -9,22 +9,25 @@ 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
{ {
# File type
type.register ASCIIDOC : asciidoc adoc ;
# Define dependency scanner
class asciidoc-scanner : common-scanner
{
rule pattern ( ) rule pattern ( )
{ {
return "include::([^[]+)\\[" ; return "include::([^[]+)\\[" ;
} }
} }
scanner.register asciidoc-scanner : include ; scanner.register asciidoc-scanner : include ;
type.set-scanner ASCIIDOC : asciidoc-scanner ; type.set-scanner ASCIIDOC : asciidoc-scanner ;
}
# Define generators # Define generators