X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Flist.sh;h=459b5d977beae89794fb77448085188455e31148;hb=fe0d096ffdccd927eb910bcc0052940059ac46f2;hp=33ba1dca45d94169ee4d4634c7ed5af8f9ca9bb7;hpb=5e94dabf8666776fb8c7575a832ec60fa6487362;p=vlc diff --git a/modules/list.sh b/modules/list.sh index 33ba1dca45..459b5d977b 100755 --- a/modules/list.sh +++ b/modules/list.sh @@ -19,7 +19,8 @@ i=0 for modfile in `find . -name "Modules.am"` do - for module in `awk '/^SOURCES_/{sub(/SOURCES_/,"",$1); print $1}' "$modfile"` + 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"` do echo $module >> $TEMPFILE if ! grep -q " \* $module:" $LISTFILE @@ -44,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" @@ -65,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