2 # Plugin API consistency check for VLC
3 # Copyright © 2007 Rémi Denis-Courmont.
5 rm -f libvlc-headers.sym
7 cat ${srcdir}/../include/vlc_*.h | \
8 sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
9 sed -e 's/[^a-zA-Z0-9_]*//' | \
10 sort -fdu > libvlc-headers.sym
12 if ! diff -u ${srcdir}/libvlc.sym libvlc-headers.sym; then
13 echo "Mismatching symbols found!"
17 # TODO: we should pass this:
18 #if grep -e "^_" libvlc-headers.sym; then
19 # echo "Illegal symbol name (starting with underscore) found!";
23 rm -f libvlc-headers.sym