X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Flist.sh;h=84ac86f7bf1ea6ae053026a8f615697c6ffd9398;hb=cdb6ccc5ace7db495b1c8e315d6886342adc6dc8;hp=4a0f34fc803f0e5ae3afe8ab986c49dd83ecd00f;hpb=bc7776a7d8a481488eefccd622a17482d58db760;p=vlc diff --git a/modules/list.sh b/modules/list.sh index 4a0f34fc80..84ac86f7bf 100755 --- a/modules/list.sh +++ b/modules/list.sh @@ -5,7 +5,7 @@ LANG=C export LANG TEMPFILE=/tmp/vlclist.tmp.$$ -LISTFILE=LIST +LISTFILE=MODULES_LIST rm -f $TEMPFILE @@ -17,7 +17,7 @@ echo "------------------------------------" i=0 -for modfile in `find . -name "Modules.am"` +for modfile in `find . -name "Modules.am" -o -name "Makefile.am"` do for module in `awk '/^SOURCES_/{sub(/SOURCES_/,"",$1); print $1}' "$modfile"`\ `awk '/^lib.*_plugin_la_SOURCES/{sub(/lib/,""); sub(/_plugin_la_SOURCES/,"",$1); print $1}' "$modfile"` @@ -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 "`wc -l < $TEMPFILE` modules listed in Modules.am files" +echo "`sort -u $TEMPFILE | wc -l` modules listed in Modules.am files" rm -f $TEMPFILE