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