logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 7603bb4fb0cce45bb69d7cec39f3cc11e33bd586
parent afb9e6539aeb20b59305f378474361860ef72349
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 11 Sep 2024 12:32:43 +0200

Makefile: check for EXIT STATUS and STANDARDS in manpages

Diffstat:

MMakefile3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -46,8 +46,9 @@ check_status: grep EXE config.mk | sed -e 's;^EXE = ;;' -e 's;cmd/;;g' | tr ' ' '\n' | grep -v '^$$' | sed -e 's;^;^;' -e 's;$$;\\b;' | grep -f - *.txt | grep -iv done .PHONY: check-man -check-man: +check-man: $(MAN1SO) err=0; for i in $(EXE); do if test ! -f $$i.1 && test ! -f $$i.1.in; then echo "$$i: missing manpage"; err=1; fi; done; exit $$err + for i in $(MAN1) ; do grep -q 'EXIT STATUS' $$i || echo "$i lacks EXIT STATUS"; grep -q 'STANDARDS' $$i || echo "$i lacks STANDARDS"; done .PHONY: lint lint: $(MAN1SO)