[MPlayer-cvslog] r36765 - trunk/help/help_check.sh

ib subversion at mplayerhq.hu
Thu Jan 30 13:05:36 CET 2014


Author: ib
Date: Thu Jan 30 13:05:35 2014
New Revision: 36765

Log:
Improve testing of the help message text headers.

It will detect now #define statements without replacement text.

Modified:
   trunk/help/help_check.sh

Modified: trunk/help/help_check.sh
==============================================================================
--- trunk/help/help_check.sh	Mon Jan 27 15:22:30 2014	(r36764)
+++ trunk/help/help_check.sh	Thu Jan 30 13:05:35 2014	(r36765)
@@ -16,7 +16,7 @@ for h in "$@"; do
 #include "$h"
 void $CHECK () {
 EOF
-  sed -n "s:^[ \t]*#define[ \t]\+\([0-9A-Za-z_]\+\)[ \t].*:strdup(\1);:p" "$h" >> ${CHECK}.c
+  sed -n "s:^[ \t]*#define[ \t]\+\([0-9A-Za-z_]\+\)\(.*\):strdup(\1);:p" "$h" >> ${CHECK}.c
   echo "}" >> ${CHECK}.c
   $CC -Werror -c -o ${CHECK}.o ${CHECK}.c || exit
 done


More information about the MPlayer-cvslog mailing list