Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
14864:765cd05bb6c3 | 14865:c90a84da69f1 |
---|---|
9 curr="" | 9 curr="" |
10 | 10 |
11 while read -r line; do | 11 while read -r line; do |
12 if echo "$line" | grep '^#define' > /dev/null 2>&1; then | 12 if echo "$line" | grep '^#define' > /dev/null 2>&1; then |
13 curr=`echo "$line" | cut -d ' ' -f 2` | 13 curr=`echo "$line" | cut -d ' ' -f 2` |
14 if grep "^#define $curr" $1 > /dev/null 2>&1; then | 14 if grep "^#define $curr[ ]" $1 > /dev/null 2>&1; then |
15 curr="" | 15 curr="" |
16 fi | 16 fi |
17 else | 17 else |
18 if [ -z "$line" ]; then | 18 if [ -z "$line" ]; then |
19 curr="" | 19 curr="" |