Commit f7324726 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Relax libvlccore.sym ordering (completely)

parent 53afb986
......@@ -501,6 +501,22 @@ stamp-revision:
dist_check_SCRIPTS = check_symbols check_headers
TESTS = check_symbols
check_DATA = libvlc-headers.sym libvlc-sorted.sym
CLEANFILES += $(check_DATA)
libvlc-sorted.sym: libvlccore.sym
rm -f libvlc-sorted.sym
sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym
libvlc-headers.sym:
rm -f libvlc-headers.sym
cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
sed -e 's/[^a-zA-Z0-9_]*//' | \
sort -fdu > libvlc-headers.sym
.PHONY: libvlc-headers.sym
check-local:
for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
do \
......
......@@ -2,14 +2,7 @@
# Plugin API consistency check for VLC
# Copyright © 2007 Rémi Denis-Courmont.
rm -f libvlc-headers.sym
cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
sed -e 's/[^a-zA-Z0-9_]*//' | \
sort -fdu > libvlc-headers.sym
if ! diff -u ${srcdir}/libvlccore.sym libvlc-headers.sym; then
if ! diff -u ${srcdir}/libvlccore.sym libvlc-sorted.sym; then
echo "Mismatching symbols found!"
exit 1
fi
......@@ -19,5 +12,3 @@ fi
# echo "Illegal symbol name (starting with underscore) found!";
# exit 1
#fi
rm -f libvlc-headers.sym
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment