From: Daniele Nicolodi Date: Tue, 20 Feb 2018 00:27:36 +0000 (-0800) Subject: Make non-GNU awk happy X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d777d1eb39fefe2ae7e3059782b5c254100be64c;p=emacs.git Make non-GNU awk happy --- diff --git a/src/dmpstruct.awk b/src/dmpstruct.awk index 608c26fcc5c..0a22030405d 100755 --- a/src/dmpstruct.awk +++ b/src/dmpstruct.awk @@ -10,10 +10,10 @@ BEGIN { struct_name = $2 close (tmpfile) } -/^(enum|struct|union) [a-zA-Z0-9_]+([\t ]|\/\*.*\*\/)*$/, /^(| )};$/ { +/^(enum|struct|union) [a-zA-Z0-9_]+([\t ]|\/\*.*\*\/)*$/, /^( )?};$/ { print $0 > tmpfile } -/^(| )};$/ { +/^( )?};$/ { if (struct_name != "") { fflush (tmpfile) cmd = "../lib-src/make-fingerprint -r " tmpfile