[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] top/maint.mk: improved regex parser used in update-NEWS-hash
From: |
Peter Simons |
Subject: |
[PATCH] top/maint.mk: improved regex parser used in update-NEWS-hash |
Date: |
Sat, 1 Aug 2009 11:43:31 +0200 |
The original version required a very specific spelling of the line:
old_NEWS_hash = foobar
In particular, it didn't allow for \t to be used instead of blanks, and
it didn't recognize the simply-expanded assignment operator ':='.
---
top/maint.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/top/maint.mk b/top/maint.mk
index 228b414..c3e2f47 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,
--
1.6.3.3
- [PATCH] top/maint.mk: improved regex parser used in update-NEWS-hash,
Peter Simons <=