提交 61521993 编写于 作者: B Behdad Esfahbod

Fix check-header-guards on OS X

上级 c62e41b6
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册