From a67e2a137ebdf2b6fcc5f7286d1e77623c2b5595 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 25 Jul 2021 07:42:14 +0200 Subject: Injecting compute-tools version into manpage headers. Signed-off-by: Daniel Baumann --- share/man/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share') 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 -- cgit v1.2.3