From 66bf91f2e9fb6a656962dfed52b55e733fae551a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Thu, 7 May 2020 09:36:43 +0200 Subject: [PATCH] Add scripts/run-manpage-checks.sh --- scripts/run-manpage-checks.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/run-manpage-checks.sh diff --git a/scripts/run-manpage-checks.sh b/scripts/run-manpage-checks.sh new file mode 100755 index 0000000..828179b --- /dev/null +++ b/scripts/run-manpage-checks.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Move to top-level cdist-contrib directory. +cd $(dirname $0)/.. + +# Check that each type has a man page. +status=0 +for t in type/*; do + if [ ! -f "$t/man.rst" ]; then + echo "No manpage for type $t!" + status=1 + fi +done + +exit $status