From 208edc200d8bd7f9ce63cd348445b21fdbf58984 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 5 Dec 2009 10:02:01 +0100 Subject: [PATCH] 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. --- ChangeLog | 4 ++++ top/maint.mk | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d7025c383..ddf520405 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-12-05 Jim Meyering + 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. diff --git a/top/maint.mk b/top/maint.mk index 596da386d..1ed15413c 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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. -- 2.11.0