From 410f2ce8d440854a852a41c45041c13103ece458 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 22 Oct 2017 07:56:41 -0500 Subject: [PATCH] Remove redundant local asciidoctor tool spec. --- doc/asciidoctor.jam | 53 --------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 doc/asciidoctor.jam diff --git a/doc/asciidoctor.jam b/doc/asciidoctor.jam deleted file mode 100644 index 56362be..0000000 --- a/doc/asciidoctor.jam +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2017 Peter Dimov -# -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) - -import type ; -import scanner ; -import generators ; -import boostbook ; - -if ! [ type.registered ASCIIDOC ] -{ - # File type - - type.register ASCIIDOC : asciidoc adoc ; - - # Define dependency scanner - - class asciidoc-scanner : common-scanner - { - rule pattern ( ) - { - return "include::([^[]+)\\[" ; - } - } - - scanner.register asciidoc-scanner : include ; - type.set-scanner ASCIIDOC : asciidoc-scanner ; -} - -# Define generators - -generators.register-standard asciidoctor.asciidoc-to-html : ASCIIDOC : HTML ; -generators.register-standard asciidoctor.asciidoc-to-pdf : ASCIIDOC : PDF ; -# generators.register-standard asciidoctor.asciidoc-to-docbook : ASCIIDOC : DOCBOOK ; - -# Define actions - -actions asciidoc-to-html -{ - asciidoctor -b html -o $(1) $(2) -} - -actions asciidoc-to-pdf -{ - asciidoctor -r asciidoctor-pdf -b pdf -o $(1) $(2) -} - -actions asciidoc-to-docbook -{ - asciidoctor -b docbook -o $(1) $(2) -}