projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c62e41b
)
Fix check-header-guards on OS X
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 27 Jan 2012 06:57:59 +0000
(
01:57
-0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 27 Jan 2012 07:23:22 +0000
(
02:23
-0500)
src/check-header-guards.sh
patch
|
blob
|
history
diff --git
a/src/check-header-guards.sh
b/src/check-header-guards.sh
index
4dd2a0b
..
af9fa7f
100755
(executable)
--- 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