diff help/help_diff.sh @ 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 96170748b6a9
children 3fb0eb698ce8
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