[Intel-gfx] [maintainer-tools PATCH 1/5] mancheck: run dim.rst through rst2man

Jani Nikula jani.nikula at intel.com
Wed Aug 9 21:08:18 UTC 2017


Be strict and also require plain rst with no raw directives.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 Makefile | 1 +
 dim.rst  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 44fcdc90473a..784d986b18cd 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ mancheck:
 			echo "$@: $$cmd not documented"; \
 		fi \
 	done
+	rst2man --strict --no-raw dim.rst >/dev/null
 
 check: shellcheck mancheck all
 
diff --git a/dim.rst b/dim.rst
index a2c110a054ee..8b4653aacbda 100644
--- a/dim.rst
+++ b/dim.rst
@@ -13,6 +13,8 @@ drm inglorious maintainer script
 :Manual section: 1
 :Manual group: maintainer tools
 
+.. Please use 'make mancheck' to validate updates to this file.
+
 SYNOPSIS
 ========
 
-- 
2.11.0



More information about the Intel-gfx mailing list