2 # Piggy list consistency checker
7 TEMPFILE
=/tmp
/vlclist.tmp.$$
14 echo "------------------------------------"
15 echo "Checking that all modules are listed"
16 echo "------------------------------------"
20 for modfile
in `find . -name "Makefile.am"`
22 for module
in `awk '/^lib.*_plugin_la_SOURCES/{sub(/lib/,""); sub(/_plugin_la_SOURCES/,"",$1); print $1}' "$modfile"`
24 echo $module >> $TEMPFILE
25 if ! grep -q " \* $module:" $LISTFILE
27 echo "$module exists in $modfile, but not listed"
41 echo "--------------------------------------"
42 echo "Checking that all listed modules exist"
43 echo "--------------------------------------"
45 for module
in `awk -F'[ :]' '/ \* /{print $3}' $LISTFILE`
47 if ! grep -wq $module $TEMPFILE
50 echo "$module is listed but does not exist"
60 echo "-------------------------------"
61 echo "Checking for alphabetical order"
62 echo "-------------------------------"
64 grep " \* " $LISTFILE | LC_COLLATE
=C LC_CTYPE
=C
sort -c && echo "OK"
68 echo "`sort -u $TEMPFILE | wc -l` modules listed in Makefiles"