--- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/Makefile b/Makefile index d34fd9a..1fc0067 100644 --- a/Makefile +++ b/Makefile @@ -204,4 +204,15 @@ print-new-files: echo; \ done
+# Check if groff reports warnings (may be words of sentances not displayed) +# from http://lintian.debian.org/tags/manpage-has-errors-from-man.html +GROFF_LOG := $(shell mktemp /tmp/perkamon-checksXXXX) +check-groff-warnings: + for f in $(WORK_DIR)/build/[!C]*/man*/*.*; \ + do \ + LC_ALL=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l $$f > /dev/null 2>$(GROFF_LOG); \ + [ -s $(GROFF_LOG) ] && ( echo -n "$$f: " | sed -e 's/.*/build///g' ; cat $(GROFF_LOG)); \ + rm $(GROFF_LOG) 2>/dev/null; \ + done + .PHONY: unpack setup translate stats disable-removed print-new-files clean release FORCE