diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-03-04 02:38:32 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-03-04 02:38:32 -0500 |
| commit | 30daa2476c5d32f231618037102c7866996e295d (patch) | |
| tree | 376161e50fbda5bcd9ae1770216c99489a90425c | |
| parent | eb94fdfde8977898523d4c451a627fdc341c5f7f (diff) | |
fix incorrect ERE
| -rw-r--r-- | mk.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
