From: david-sarah Date: Sat, 23 Jun 2012 23:23:19 +0000 (+0000) Subject: Makefile: Add 'check-rst' target to check .rst files for errors. Also add 'doc-checks... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/-?a=commitdiff_plain;h=1b4474d1ae9c459ee4f451b4d989882a1e617094;p=tahoe-lafs%2Ftahoe-lafs.git Makefile: Add 'check-rst' target to check .rst files for errors. Also add 'doc-checks' which at the moment just runs check-rst, but might do more in future. fixes #1780 --- diff --git a/Makefile b/Makefile index 89532499..5529c161 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,12 @@ check-umids: -$(PYTHON) misc/coding_tools/check-umids.py `find $(SOURCES) -name '*.py'` @echo +doc-checks: check-rst + +check-rst: + @for x in `find *.rst docs -name "*.rst"`; do rst2html -v $${x} >/dev/null; done 2>&1 |grep -v 'Duplicate implicit target name:' + @echo + count-lines: @echo -n "files: " @find src -name '*.py' |grep -v /build/ |wc -l