diff --git a/help_diff.sh b/help_diff.sh index 0f9c88f138..f90e3d007b 100755 --- a/help_diff.sh +++ b/help_diff.sh @@ -4,7 +4,7 @@ # prints (stdout) only those messages which are missing from the help # file given as parameter ($1). # -# Example: help_mp-en.sh help_mp-hu.h < help_mp-en.h > missing.h +# Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h curr="x" @@ -12,7 +12,7 @@ while read -r line ; do if ( echo $line | cut -d ' ' -f 1 | grep '^#define' > /dev/null ); then curr=`echo $line | cut -d ' ' -f 2` - if ( grep "$curr " $1 > /dev/null ); then + if ( grep " $curr " $1 > /dev/null ); then curr="x" fi else