diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-07-25 05:42:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-07-25 05:52:02 +0000 |
commit | a67e2a137ebdf2b6fcc5f7286d1e77623c2b5595 (patch) | |
tree | 7f61d43371aebf490f698adcd6cc39ec3f9cc45f | |
parent | Prefixing generated manpages with boiler-plate header. (diff) | |
download | compute-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>
-rw-r--r-- | share/man/Makefile | 3 |
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 |