Skip to content

Commit d153a0f

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Flag concepts missing a definition
1 parent d4a97a7 commit d153a0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/check-output.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ cat std-grammarindex.ind |
4848
sed 's/^\(.*\)$/grammar non-terminal \1 has no definition/' |
4949
fail || failed=1
5050

51+
# Find concept index entries missing a definition
52+
cat std-conceptindex.ind |
53+
sed 's/.hyperindexformat/\nhyperindexformat/' |
54+
awk 'BEGIN { def=1 } /^ .item/ { if (def==0) { gsub("[{},]", "", item); print item } item=$NF; def=0; next } /hyperindexformat/ { def=1 }' |
55+
sed 's/^\(.*\)$/concept \1 has no definition/' |
56+
fail || failed=1
57+
5158
# Cross references since the previous standard.
5259
function indexentries() { sed 's,\\glossaryentry{\(.*\)@.*,\1,' "$1" | LANG=C sort; }
5360
function removals() { diff -u "$1" "$2" | grep '^-' | grep -v '^---' | sed 's/^-//'; }

0 commit comments

Comments
 (0)