summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-25 05:42:14 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-07-25 05:52:02 +0000
commita67e2a137ebdf2b6fcc5f7286d1e77623c2b5595 (patch)
tree7f61d43371aebf490f698adcd6cc39ec3f9cc45f /share
parentPrefixing generated manpages with boiler-plate header. (diff)
downloadcompute-tools-a67e2a137ebdf2b6fcc5f7286d1e77623c2b5595.tar.xz
compute-tools-a67e2a137ebdf2b6fcc5f7286d1e77623c2b5595.zip
Injecting compute-tools version into manpage headers.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share')
-rw-r--r--share/man/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/man/Makefile b/share/man/Makefile
index 56408d7..a8af58d 100644
--- a/share/man/Makefile
+++ b/share/man/Makefile
@@ -27,6 +27,8 @@ RST2MAN = rst2man \
--tab-width=4 \
--verbose
+VERSION := $(shell cat ../../VERSION.txt)
+
SHELL := sh -e
all: build
@@ -44,6 +46,7 @@ man: man.in *.rst
$(RST2MAN) $${FILE} | \
sed -e '/^.\\" Man page generated/d' \
-e '/^.\\" Generated by/d' \
+ -e "s|^\(.TH .*\) \(\"\" \"\"\) |\1 $${VERSION} compute-tools |" \
>> $$(basename $${FILE} .rst); \
echo -n "."; \
done