]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix {release-version} man pages
authorKarel Zak <kzak@redhat.com>
Wed, 2 Jun 2021 09:55:44 +0000 (11:55 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 Jun 2021 09:55:44 +0000 (11:55 +0200)
* define {release-version} as $VERSION

* do not use {docdir} in adoc; it's built-in ascidoctor variable
  https://docs.asciidoctor.org/asciidoc/latest/attributes/document-attributes-reference/#intrinsic-attributes

Addresses: https://github.com/karelzak/util-linux/issues/1327
Signed-off-by: Karel Zak <kzak@redhat.com>
Makefile.am
misc-utils/getopt.1.adoc

index 886598d1b309053a4e10c9181bcd92ecc2bae977..24d781dc7c6cac541c461398246682a50d46718c 100644 (file)
@@ -205,6 +205,8 @@ $(MANPAGES): $(ADOCFILES_COMMON) Makefile
 
 asciidoc_man_cmd = $(ASCIIDOCTOR) \
        -b manpage \
+       -a 'release-version=$(VERSION)' \
+       -a 'package-docdir=$(docdir)' \
        -a 'VERSION=$(VERSION)' \
        -a 'ADJTIME_PATH=$(ADJTIME_PATH)'
 
index b4d10169f2c264251de0a218d3328be6744b95e7..1b44b207656f9c0cfb32dde8147b131dcebc0987 100644 (file)
@@ -129,8 +129,8 @@ In compatibility mode, leading '*-*' and '*{plus}*' characters in the short opti
 
 == EXAMPLES
 
-// TRANSLATORS: Don't translate _{docdir}_.
-Example scripts for (ba)sh and (t)csh are provided with the *getopt*(1) distribution, and are installed in _{docdir}_ directory.
+// TRANSLATORS: Don't translate _{package-docdir}_.
+Example scripts for (ba)sh and (t)csh are provided with the *getopt*(1) distribution, and are installed in _{package-docdir}_ directory.
 
 == ENVIRONMENT