Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / runtime / doc / glossary / checkxrefs
blob6da64c184b3090bcea71ff310316a410e60a2b57
1 #!/bin/sh
2 DEFINED_ENTRIES=`sed -ne "s^.*<glossentry id=\"\(.*\)\">.*^\1^p" *.docbook`
3 REFERENCED_ENTRIES=`sed -ne "s^.*<glossseealso otherterm=\"\(.*\)\">.*^\1^p" *.docbook | unique`
5 # Check for entries which are referenced but not defined.
6 for ENTRY in $REFERENCED_ENTRIES; do
7 if ! echo $DEFINED_ENTRIES | grep $ENTRY - > /dev/null 2>&1; then
8 echo "'$ENTRY' referenced but not defined!"
9 fi
10 done