Le 2012/8/26 Simon Paillard a écrit :
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
Bonne idée. On peut se passer de fichier temporaire : for f in $(WORK_DIR)/build/[!C]*/man*/*.*; \ do \ LC_ALL=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l $$f 2>&1 > /dev/null |\ sed -e "s,.,$${f#$(WORK_DIR)/build/}: &,"; \ done
Denis