[vlc-commits] commit: check_headers: fix the script (a partial match is not enough). ( Rémi Duraffort )

git at videolan.org git at videolan.org
Thu Nov 4 20:17:20 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Nov  4 20:16:22 2010 +0100| [9b7d3dcc5eff41041fd8ef34f750765800466cbc] | committer: Rémi Duraffort 

check_headers: fix the script (a partial match is not enough).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b7d3dcc5eff41041fd8ef34f750765800466cbc
---

 src/check_headers |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/check_headers b/src/check_headers
index a60a931..734ad1e 100755
--- a/src/check_headers
+++ b/src/check_headers
@@ -9,7 +9,8 @@ regexp="$(cat ../config.h.in | \
 	sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
 	grep -v 'WORDS_BIGENDIAN' | \
 	xargs | \
-	sed -e 's/ /\\\|/g')"
+    sed -e 's/ /\\\| /g' | sed -e 's/\\|/\$\\|/g')"
+regexp=" $regexp\$"
 
 echo Looking for private defines in public headers...
 ! grep -- "$regexp" "$@" || exit $?



More information about the vlc-commits mailing list