tools: (asciidoctor) explicitly require extensions module
This is needed for older versions of asciidoctor. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
This commit is contained in:
parent
25a70dcb2e
commit
a5b093698a
3 changed files with 7 additions and 2 deletions
|
@ -805,16 +805,17 @@ AC_ARG_ENABLE([asciidoc],
|
|||
UL_BUILD_INIT([asciidoc])
|
||||
UL_REQUIRES_PROGRAM([asciidoc], [ASCIIDOCTOR], [asciidoctor], [man pages])
|
||||
AM_CONDITIONAL([ENABLE_ASCIIDOC], [test "x$build_asciidoc" = xyes])
|
||||
have_asciidoctor_failure_level=no
|
||||
AS_IF([test "x$build_asciidoc" = xyes], [
|
||||
AC_MSG_CHECKING([whether ${ASCIIDOCTOR} supports --failure-level])
|
||||
AS_IF([${ASCIIDOCTOR} --help | grep failure-level >/dev/null 2>&1 ], [
|
||||
AC_MSG_RESULT([yes])
|
||||
AM_CONDITIONAL([HAVE_ASCIIDOCTOR_FAILURE_LEVEL], [true])
|
||||
have_asciidoctor_failure_level=yes
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
AM_CONDITIONAL([HAVE_ASCIIDOCTOR_FAILURE_LEVEL], [false])
|
||||
])
|
||||
])
|
||||
AM_CONDITIONAL([HAVE_ASCIIDOCTOR_FAILURE_LEVEL], [test "x$have_asciidoctor_failure_level" = xyes])
|
||||
|
||||
have_manpages=no
|
||||
AS_IF([test -f "$srcdir/sys-utils/mount.8"], [
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (C) 2023 Thomas Weißschuh <thomas@t-8ch.de>
|
||||
# Extensions for asciidoctor to write dependency files for include directives.
|
||||
|
||||
require 'asciidoctor/extensions'
|
||||
|
||||
module IncludeTracker
|
||||
|
||||
class Preprocessor < Asciidoctor::Extensions::Preprocessor
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (C) 2023 Thomas Weißschuh <thomas@t-8ch.de>
|
||||
# Extension for asciidoctor to remove unicode dash in first section of manpage
|
||||
|
||||
require 'asciidoctor/extensions'
|
||||
|
||||
module UnicodeConverter
|
||||
BEFORE_NAME_SECTION = 1
|
||||
IN_NAME_SECTION = 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue