--- 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
Afficher les réponses par date
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
On Sun, Aug 26, 2012 at 09:35:25PM +0200, D. Barbier wrote:
Le 2012/8/26 Simon Paillard a écrit :
[..]
+# Check if groff reports warnings (may be words of sentances not displayed) +# from http://lintian.debian.org/tags/manpage-has-errors-from-man.html
[..]
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
Bien mieux en effet, peux-tu commiter cela ? Je ne peux pas écrire dans les module man-pages.
Le 2012/8/27 Simon Paillard a écrit :
On Sun, Aug 26, 2012 at 09:35:25PM +0200, D. Barbier wrote:
Le 2012/8/26 Simon Paillard a écrit :
[..]
+# Check if groff reports warnings (may be words of sentances not displayed) +# from http://lintian.debian.org/tags/manpage-has-errors-from-man.html
[..]
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
Bien mieux en effet, peux-tu commiter cela ? Je ne peux pas écrire dans les module man-pages.
Fait, j'ai aussi mis les mêmes droits sur man-pages que sur man-pages-fr.
Denis