Mercurial > mplayer.hg
changeset 36669:cb9975cda4bc
Improve testing of the help message text headers.
It will detect now #define statements without replacement text.
author | ib |
---|---|
date | Thu, 30 Jan 2014 12:05:35 +0000 |
parents | d3c59aa1c59b |
children | 7d250553d451 |
files | help/help_check.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/help/help_check.sh Mon Jan 27 14:22:30 2014 +0000 +++ b/help/help_check.sh Thu Jan 30 12:05:35 2014 +0000 @@ -16,7 +16,7 @@ #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