packetizer: hevc: add poc debug
[vlc.git] / modules / list.sh
blob2f9fc3844ffdd683d1073cc546be4d641760ee93
1 #! /bin/sh
2 # Piggy list consistency checker
4 LANG=C
5 export LANG
7 TEMPFILE=/tmp/vlclist.tmp.$$
8 LISTFILE=MODULES_LIST
11 rm -f $TEMPFILE
12 touch $TEMPFILE
14 echo "------------------------------------"
15 echo "Checking that all modules are listed"
16 echo "------------------------------------"
18 i=0
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
26 then
27 echo "$module exists in $modfile, but not listed"
28 i=1
30 done
31 done
33 if [ $i = 0 ]
34 then
35 echo "OK"
38 i=0
40 echo
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
48 then
49 i=1
50 echo "$module is listed but does not exist"
52 done
54 if [ $i = 0 ]
55 then
56 echo "OK"
59 echo
60 echo "-------------------------------"
61 echo "Checking for alphabetical order"
62 echo "-------------------------------"
64 grep " \* " $LISTFILE | LC_COLLATE=C LC_CTYPE=C sort -c && echo "OK"
67 echo ""
68 echo "`sort -u $TEMPFILE | wc -l` modules listed in Makefiles"
70 rm -f $TEMPFILE