maint.mk: relax update-NEWS-hash to accept more syntax
authorPeter Simons <simons@cryp.to>
Sat, 1 Aug 2009 09:43:31 +0000 (11:43 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 1 Aug 2009 11:20:30 +0000 (13:20 +0200)
* 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 "=".

top/maint.mk

index 228b4143edef8f1320b514cf68c6c99d3a2b8a1f..c3e2f47998e6574b74d0ef1e44068fbf40b945e4 100644 (file)
@@ -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,