Fix check on OS X sh

This commit is contained in:
Behdad Esfahbod 2011-08-05 20:09:25 -04:00
parent 9da554504e
commit 54eb65538d
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ for x in $HBHEADERS $HBSOURCES; do
echo "$x" | grep '[^h]$' -q && continue;
xx=`echo "$x" | sed 's@.*/@@'`
tag=`echo "$xx" | tr 'a-z.-' 'A-Z_'`
lines=`grep "\<$tag\>" "$x" | wc -l`
lines=`grep "\<$tag\>" "$x" | wc -l | sed 's/ //g'`
if test "x$lines" != x3; then
echo "Ouch, header file $x does not have correct preprocessor guards"
stat=1