From b1135c2901ebe6331b1794002eec47c4b214f82c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 3 Aug 2011 12:39:36 +0000 Subject: (check-fixmes): New rule. --- doc/Makefile.am | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'doc/Makefile.am') diff --git a/doc/Makefile.am b/doc/Makefile.am index 652356b..59da8eb 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -49,9 +49,24 @@ check-sentence-spacing: echo >&2 "Run make fix-sentence-spacing to fix"; \ fi +check-fixmes: + @for file in $(info_TEXINFOS) $(gdbm_TEXINFOS); \ + do \ + sed -e = $$file | \ + sed -n 'N;/@c *FIXME:/{s/\(^[0-9][0-9]*\).*@c *FIXME:\(.*\)/'$$file':\1: \2/gp}'; \ + done > $@-t; \ + if [ -s $@-t ]; then \ + echo "Unresolved FIXMEs:"; \ + cat $@-t; \ + rm $@-t; \ + false; \ + else \ + rm -f $@-t; \ + fi + check-format: check-tabs check-sentence-spacing -check-docs: check-format +check-docs: check-format check-fixmes untabify: emacs -batch -l untabify.el $(info_TEXINFOS) $(cfpeek_TEXINFOS) -- cgit v1.2.1