From 30daa2476c5d32f231618037102c7866996e295d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 4 Mar 2020 02:38:32 -0500 Subject: fix incorrect ERE --- mk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk.sh b/mk.sh index 5789ee6c..1fb805dd 100644 --- a/mk.sh +++ b/mk.sh @@ -77,7 +77,7 @@ get_declaration () { if grep -q '^#if' $1; then sed -ne '/^#if/,/#endif/p' $1 - elif grep -qE '^(typedef|struct|union) .*{' $1; then + elif grep -qE '^(typedef|struct|union) .*\{' $1; then sed -ne '/{$/,/^}/p' $1 elif grep -qE '^(typedef|struct|union) .*[^;]$' $1; then grep -E '^(typedef|struct|union| )' $1 -- cgit v1.2.1