From fce7b9501c7d9aee6b3eca7ce13971aad5e53344 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 2 Jun 2021 11:55:44 +0200 Subject: [PATCH] build-sys: fix {release-version} man pages * 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 --- Makefile.am | 2 ++ misc-utils/getopt.1.adoc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 886598d1b..24d781dc7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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)' diff --git a/misc-utils/getopt.1.adoc b/misc-utils/getopt.1.adoc index b4d10169f..1b44b2076 100644 --- a/misc-utils/getopt.1.adoc +++ b/misc-utils/getopt.1.adoc @@ -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