summaryrefslogtreecommitdiff
path: root/dist/s_define
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2010-04-07 01:37:59 +1000
committerKeith Bostic <keith@wiredtiger.com>2010-04-07 01:37:59 +1000
commitf4e3e23ba17a473655b5ed695bd39c2394de4566 (patch)
treef100980af9cac0c2d728a9e0531f8e6e77522dbc /dist/s_define
parentc151d6c3f244d06e5eaf019ea7455f59f737b40b (diff)
downloadmongo-f4e3e23ba17a473655b5ed695bd39c2394de4566.tar.gz
Check for the exact #define, it might be a prefix of another #define.
--HG-- branch : keith
Diffstat (limited to 'dist/s_define')
-rw-r--r--dist/s_define4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/s_define b/dist/s_define
index d98b07a1dda..81a52202d37 100644
--- a/dist/s_define
+++ b/dist/s_define
@@ -18,7 +18,7 @@ for i in \
egrep '^#define' |
sed 's/#define[ ][ ]*\([A-Za-z_]*\).*/\1/' |
sort -u`; do
- if `egrep "$i" $l > /dev/null`; then
+ if `egrep -w "$i" $l > /dev/null`; then
continue
fi
echo $i
@@ -36,7 +36,7 @@ for i in \
sed -e 's/#define[ ][ ]*\([A-Za-z_]*\).*/\1/' \
-e 's/WT_STAT_//' |
sort -u`; do
- if `egrep "$i" $l > /dev/null`; then
+ if `egrep -w "$i" $l > /dev/null`; then
continue
fi
echo "WT_STAT_$i"