src/check_symbols: Work around some sed implemention. (Especially Mac OS X's).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 1 Feb 2008 12:31:58 +0000 (12:31 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 1 Feb 2008 12:31:58 +0000 (12:31 +0000)
src/check_symbols

index 20cc3d6..9b65c53 100755 (executable)
@@ -5,7 +5,8 @@
 rm -f libvlc-headers.sym
 
 cat ${srcdir}/../include/vlc_*.h | \
-sed -n -e 's/^VLC_EXPORT\s*([^,]*,\s*\([a-zA-Z0-9_]*\)\s*,.*$/\1/p' | \
+sed -n -e 's/^\s*VLC_EXPORT\s*([^,]*,\([^,]*\).*).*/\1/p' | \
+sed -e 's/[^a-zA-Z0-9_]*//' | \
 sort -du > libvlc-headers.sym
 
 if ! diff -u ${srcdir}/libvlc.sym libvlc-headers.sym; then