summaryrefslogtreecommitdiffstats
path: root/help/help_diff.sh
diff options
context:
space:
mode:
authorwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-03-01 10:44:45 +0000
committerwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-03-01 10:44:45 +0000
commit4387a0cff0736df402baad3c53755883bd7a0cbd (patch)
tree3487fc6015da8299dca0183bba7007d128f29f1b /help/help_diff.sh
parent70f586b4204fff535d69c3016e26049b9f093d13 (diff)
downloadmpv-4387a0cff0736df402baad3c53755883bd7a0cbd.tar.bz2
mpv-4387a0cff0736df402baad3c53755883bd7a0cbd.tar.xz
We should match end of token as well, to prevent MSGTR_FOO2 matching instead of
MSGTR_FOO. Helps compilation in case of some changes to help*.h files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14866 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'help/help_diff.sh')
-rwxr-xr-xhelp/help_diff.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/help/help_diff.sh b/help/help_diff.sh
index 2096fa7709..214d402bb1 100755
--- a/help/help_diff.sh
+++ b/help/help_diff.sh
@@ -11,7 +11,7 @@ curr=""
while read -r line; do
if echo "$line" | grep '^#define' > /dev/null 2>&1; then
curr=`echo "$line" | cut -d ' ' -f 2`
- if grep "^#define $curr" $1 > /dev/null 2>&1; then
+ if grep "^#define $curr[ ]" $1 > /dev/null 2>&1; then
curr=""
fi
else