cdist-contrib/scripts/run-manpage-checks.sh

16 lines
244 B
Bash
Raw Permalink Normal View History

2020-05-07 07:36:43 +00:00
#!/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