Add scripts/run-manpage-checks.sh
This commit is contained in:
parent
898b6a20b0
commit
66bf91f2e9
1 changed files with 15 additions and 0 deletions
15
scripts/run-manpage-checks.sh
Executable file
15
scripts/run-manpage-checks.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue