From: Peter Simons Date: Sat, 1 Aug 2009 09:43:31 +0000 (+0200) Subject: maint.mk: relax update-NEWS-hash to accept more syntax X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c5d5d57bbaa15ad770ff0166e9fc6319402d76;p=pspp maint.mk: relax update-NEWS-hash to accept more syntax * top/maint.mk (update-NEWS-hash): Match variants of the "old_NEWS_hash = ...HASH..." line: allow TABs, more than one space, and ":=" in place of "=". --- diff --git a/top/maint.mk b/top/maint.mk index 228b4143ed..c3e2f47998 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -492,7 +492,7 @@ sc_immutable_NEWS: # Update the hash stored above. Do this after each release and # for any corrections to old entries. update-NEWS-hash: NEWS - perl -pi -e 's/^(old_NEWS_hash = ).*/$${1}'"$(NEWS_hash)/" \ + perl -pi -e 's/^(old_NEWS_hash[ \t]+:?=[ \t]+).*/$${1}'"$(NEWS_hash)/" \ $(srcdir)/cfg.mk # Ensure that we use only the standard $(VAR) notation,