Skip to content

Commit

Permalink
append version information to manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyx committed May 29, 2022
1 parent e1f0744 commit b0615e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b0615e7

Please sign in to comment.