From 6152199368399bf98368ea3c794fa760b49756ba Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 27 Jan 2012 01:57:59 -0500 Subject: [PATCH] Fix check-header-guards on OS X --- src/check-header-guards.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check-header-guards.sh b/src/check-header-guards.sh index 4dd2a0bb6..af9fa7fc2 100755 --- a/src/check-header-guards.sh +++ b/src/check-header-guards.sh @@ -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 | sed 's/ //g'` + 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