diff options
author | Slávek Banko <[email protected]> | 2020-11-17 19:52:37 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-11-17 19:52:37 +0100 |
commit | 1b6c123de102f0152d296fba8771d348329ba95c (patch) | |
tree | 0f2bb5c5e91f1a6abdd0e585c36c8307b930fc71 /doc/khelpcenter/glossary/checkxrefs | |
parent | 9b5b19a9b4baaba6199b9d3797df6b8fc8f76606 (diff) | |
download | tdebase-1b6c123de102f0152d296fba8771d348329ba95c.tar.gz tdebase-1b6c123de102f0152d296fba8771d348329ba95c.zip |
Move the khelpcenter guides to the directory level in which they are installed.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'doc/khelpcenter/glossary/checkxrefs')
-rwxr-xr-x | doc/khelpcenter/glossary/checkxrefs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/khelpcenter/glossary/checkxrefs b/doc/khelpcenter/glossary/checkxrefs new file mode 100755 index 000000000..6da64c184 --- /dev/null +++ b/doc/khelpcenter/glossary/checkxrefs @@ -0,0 +1,10 @@ +#!/bin/sh +DEFINED_ENTRIES=`sed -ne "s^.*<glossentry id=\"\(.*\)\">.*^\1^p" *.docbook` +REFERENCED_ENTRIES=`sed -ne "s^.*<glossseealso otherterm=\"\(.*\)\">.*^\1^p" *.docbook | unique` + +# Check for entries which are referenced but not defined. +for ENTRY in $REFERENCED_ENTRIES; do + if ! echo $DEFINED_ENTRIES | grep $ENTRY - > /dev/null 2>&1; then + echo "'$ENTRY' referenced but not defined!" + fi +done |