From b0615e75167d2ee75ad32cc2dc75f358fb1e9cbb Mon Sep 17 00:00:00 2001 From: dyx Date: Sun, 29 May 2022 17:16:50 +0800 Subject: [PATCH] append version information to manpage --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index b98ce8e..1f90410 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,14 @@ install: all $(INSTALL) cli tc $(libdir)/shsub/ $(INSTALL) -m644 version LICENSE $(libdir)/shsub/ $(INSTALL) -m644 shsub.1 $(mandir)/man1/ + @echo append version information to manpage + @( \ + printf "\n%s\n\n" ".SH VERSION"; \ + printf "shsub "; \ + cat version; \ + printf "\n"; \ + cat LICENSE; \ + ) >>$(mandir)/man1/shsub.1 @echo generate "`echo $(bindir)/shsub`" @>$(bindir)/shsub @>>$(bindir)/shsub echo '#!/bin/sh'