changeset 14865:c90a84da69f1

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.
author wight
date Tue, 01 Mar 2005 10:44:45 +0000
parents 765cd05bb6c3
children 4aee81ed91ad
files help/help_diff.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/help/help_diff.sh	Tue Mar 01 09:29:18 2005 +0000
+++ b/help/help_diff.sh	Tue Mar 01 10:44:45 2005 +0000
@@ -11,7 +11,7 @@
 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