X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Flist.sh;h=459b5d977beae89794fb77448085188455e31148;hb=422662000ea67b4bbc817e3b26ff246cbec96d58;hp=7b02c51f6a89b114e160e38f986103e3aabbb776;hpb=9bcc170e96431f5d10cf1ca0870af579bc009920;p=vlc diff --git a/modules/list.sh b/modules/list.sh index 7b02c51f6a..459b5d977b 100755 --- a/modules/list.sh +++ b/modules/list.sh @@ -45,7 +45,7 @@ echo "--------------------------------------" 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" @@ -66,6 +66,6 @@ grep " \* " $LISTFILE | LC_CTYPE=C sort -c && echo "OK" 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