[Intel-gfx] [dim PATCH 3/7] dim: add 'make mancheck' target to check all subcommands have been documented

Jani Nikula jani.nikula at intel.com
Fri Mar 24 16:11:55 UTC 2017


Just a simple grep.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index c1fe02c1b565..ce283114c4aa 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,13 @@ SC_EXCLUDE := \
 shellcheck:
 	shellcheck $(SC_EXCLUDE) dim bash_completion
 
+mancheck:
+	@for cmd in $$(dim list-commands); do \
+		if ! grep -q "^$$cmd" dim.rst; then \
+			echo "$$cmd not documented"; \
+		fi \
+	done
+
 clean:
 	rm -f drm-intel.html drm-intel-flow.svg dim.html drm-misc.html
 
-- 
2.1.4



More information about the Intel-gfx mailing list