Mercurial > mplayer.hg
view help/help_check.sh @ 36670:7d250553d451
Revise GUI help message texts.
In particular, revise the English and German translations,
but remove some unused definitions from all language files
as well, and don't define a symbolic constant by an other one.
Additionally, make some necessary code changes.
author | ib |
---|---|
date | Thu, 30 Jan 2014 13:26:45 +0000 |
parents | cb9975cda4bc |
children | 55f218d04dd3 |
line wrap: on
line source
#!/bin/sh # Check help message header files. CHECK=checkhelp trap "rm -f ${CHECK}.c ${CHECK}.o" EXIT CC=$1 shift for h in "$@"; do cat <<EOF > ${CHECK}.c #include <inttypes.h> #include <string.h> #include "config.h" #include "$h" void $CHECK () { EOF 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