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!"