Guard against redef of asciidoctor in common b2.

This commit is contained in:
Rene Rivera
2017-10-18 18:47:06 -05:00
committed by GitHub
parent cf19f2469a
commit 96742a7248

View File

@@ -9,6 +9,8 @@ import scanner ;
import generators ;
import boostbook ;
if ! [ type.registered ASCIIDOC ]
{
# File type
type.register ASCIIDOC : asciidoc adoc ;
@@ -25,6 +27,7 @@ class asciidoc-scanner : common-scanner
scanner.register asciidoc-scanner : include ;
type.set-scanner ASCIIDOC : asciidoc-scanner ;
}
# Define generators