Fix distribution of manpages
[vlc/vlc-acra.git] / src / check_symbols
blob4374d8d6a2295d1d10a0b965a88307bb791e0637
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 ${srcdir}/control/*.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}/libvlccore.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