summaryrefslogtreecommitdiff
path: root/mk.sh
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-03-04 02:38:32 -0500
committerJakob Kaivo <jkk@ung.org>2020-03-04 02:38:32 -0500
commit30daa2476c5d32f231618037102c7866996e295d (patch)
tree376161e50fbda5bcd9ae1770216c99489a90425c /mk.sh
parenteb94fdfde8977898523d4c451a627fdc341c5f7f (diff)
fix incorrect ERE
Diffstat (limited to 'mk.sh')
-rw-r--r--mk.sh2
1 files changed, 1 insertions, 1 deletions
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