From 9ac2e5c6c01db3ebe419e3aa07f4d1a3777d2bb6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Oct 2017 10:06:25 -0400 Subject: [PATCH] check-externs.sh: Make output more verbose Trying to figure out why this is failing on some Debian bots: https://bugs.freedesktop.org/show_bug.cgi?id=103346 Maybe I should check for GNU grep specifically now that I'm using -n as well. --- src/check-externs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/check-externs.sh b/src/check-externs.sh index 63cc7d5bb..7f0e3218b 100755 --- a/src/check-externs.sh +++ b/src/check-externs.sh @@ -14,7 +14,8 @@ echo 'Checking that all public symbols are exported with HB_EXTERN' for x in $HBHEADERS; do test -f "$srcdir/$x" && x="$srcdir/$x" - $EGREP -B1 '^hb_' "$x" | $EGREP -E -v '^(--|hb_|HB_EXTERN )' -A1 + $EGREP -B1 -n '^hb_' /dev/null "$x" | + $EGREP -v '(^--|:hb_|-HB_EXTERN )' -A1 done | grep . >&2 && stat=1