[vlc-devel] commit: Relax libvlccore.sym ordering (completely) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jul 6 22:26:21 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 6 23:25:53 2009 +0300| [f7324726471f5b8d7bc61a908784c40f24e71ed9] | committer: Rémi Denis-Courmont
Relax libvlccore.sym ordering (completely)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7324726471f5b8d7bc61a908784c40f24e71ed9
---
src/Makefile.am | 16 ++++++++++++++++
src/check_symbols | 11 +----------
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index dda0d53..21a8628 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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 \
diff --git a/src/check_symbols b/src/check_symbols
index 4374d8d..59f05f1 100755
--- a/src/check_symbols
+++ b/src/check_symbols
@@ -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
More information about the vlc-devel
mailing list