aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-consistency.sh
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 22:25:07 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 22:28:19 +0200
commit62504dda1527490cb49e56dd9840031479d258f0 (patch)
tree34d8ec924672bad497902d145e67999b6850a830 /scripts/check-consistency.sh
parent10e9e42bb6862a97539346c9d11c328fb73cfe2f (diff)
downloadbokf-62504dda1527490cb49e56dd9840031479d258f0.tar.gz
bokf-62504dda1527490cb49e56dd9840031479d258f0.zip
docs: generate the command catalogue from the command tables
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/check-consistency.sh')
-rwxr-xr-xscripts/check-consistency.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/check-consistency.sh b/scripts/check-consistency.sh
index 600db25..3ca9b0c 100755
--- a/scripts/check-consistency.sh
+++ b/scripts/check-consistency.sh
@@ -70,8 +70,13 @@ fi
# --- extract what the docs promise -----------------------------------------
# Only rows of tables whose header first cell is "Command" count; prose,
-# argument names and other tables must not produce command names.
+# argument names and other tables must not produce command names. The
+# generated catalogue (gen_protocol) is skipped so every command still needs
+# a hand-written table row with its result.
awk '
+ /<!-- generated:commands begin -->/ { skip = 1 }
+ /<!-- generated:commands end -->/ { skip = 0; next }
+ skip { next }
/^\|/ {
n = split($0, cells, "|")
cell = cells[2]