Typo
[vlc/vlc-skelet.git] / src / check_symbols
blob3556a791bca747334027d0786681640d16992bdd
1 #! /bin/sh
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!"
14 exit 1
17 # TODO: we should pass this:
18 #if grep -e "^_" libvlc-headers.sym; then
19 # echo "Illegal symbol name (starting with underscore) found!";
20 # exit 1
21 #fi
23 rm -f libvlc-headers.sym