summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck13
1 files changed, 13 insertions, 0 deletions
diff --git a/check b/check
index 43f671a..101da55 100755
--- a/check
+++ b/check
@@ -30,6 +30,10 @@ fi
echo Formatting docs ========================================
./format.sh
+plugindocs() {
+ ls -1 vmdb/plugins/*.mdwn
+}
+
steps() {
sed -n '/<h2 id="step-.*> Step: /s///p' vmdb2.html
}
@@ -43,6 +47,15 @@ panic() {
exit 1
}
+for doc in $(plugindocs)
+do
+ n="$(grep -c '^Step:' "$doc")"
+ if [ "$n" != 1 ]
+ then
+ panic "Plugin doc $doc must have exactly 1 step title"
+ fi
+done
+
n="$(code | wc -l)"
if [ "$n" != 0 ]
then