maint.mk: backslash-escape parens in default regexp
authorJim Meyering <meyering@redhat.com>
Sat, 5 Dec 2009 09:02:01 +0000 (10:02 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 5 Dec 2009 09:02:01 +0000 (10:02 +0100)
* top/maint.mk (news-check-regexp): Now that we're using grep -E,
backslash-escape the literal parentheses.

ChangeLog
top/maint.mk

index d7025c3..ddf5204 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-12-05  Jim Meyering  <meyering@redhat.com>
 
+       maint.mk: backslash-escape parens in default regexp
+       * top/maint.mk (news-check-regexp): Now that we're using grep -E,
+       backslash-escape the literal parentheses.
+
        maint.mk: news-date-check: use grep -E
        * top/maint.mk (today): Define a Make variable, not a...
        (news-date-check): ...shell variable.
index 596da38..1ed1541 100644 (file)
@@ -80,7 +80,7 @@ endif
 # Override this in cfg.mk if you are using a different format in your
 # NEWS file.
 today = $(shell date +%Y-%m-%d)
-news-check-regexp ?= '^\*.* $(VERSION_REGEXP) ($(today))'
+news-check-regexp ?= '^\*.* $(VERSION_REGEXP) \($(today)\)'
 
 # Prevent programs like 'sort' from considering distinct strings to be equal.
 # Doing it here saves us from having to set LC_ALL elsewhere in this file.