for module in `awk -F'[ :]' '/ \* /{print $3}' $LISTFILE`
do
- if ! grep -q $module $TEMPFILE
+ if ! grep -wq $module $TEMPFILE
then
i=1
echo "$module is listed but does not exist"
echo ""
-echo "`cat $TEMPFILE| wc -l` modules listed in Modules.am files"
+echo "`sort -u $TEMPFILE | wc -l` modules listed in Modules.am files"
rm -f $TEMPFILE