Revert [24713]. If problem there is it's in configure.ac or in the qt4 .pc's
[vlc/vlc-skelet.git] / src / check_symbols
blob20cc3d6c803d1b3c059470c282fbb6681f2b2531
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\s*([^,]*,\s*\([a-zA-Z0-9_]*\)\s*,.*$/\1/p' | \
9 sort -du > libvlc-headers.sym
11 if ! diff -u ${srcdir}/libvlc.sym libvlc-headers.sym; then
12 echo "Mismatching symbols found!"
13 exit 1
16 # TODO: we should pass this:
17 #if grep -e "^_" libvlc-headers.sym; then
18 # echo "Illegal symbol name (starting with underscore) found!";
19 # exit 1
20 #fi