diff options
author | Alfred M. Szmidt <ams@gnu.org> | 2009-12-04 21:27:40 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-12-04 22:11:32 -0700 |
commit | 9ecc3fc82134dcc8b5ced17af8e46599c5ea5635 (patch) | |
tree | c20771693b77892490d3b572cac07bcfd87fe7af /top | |
parent | 3e035a5d686888e5eba0b622dac459b65cdd99d3 (diff) | |
download | gnulib-9ecc3fc82134dcc8b5ced17af8e46599c5ea5635.tar.gz |
maintainer-makefile: allow customization of NEWS entry format
* top/maint.mk (news-date-regexp): New overridable variable.
(news-date-check): Use it.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk index c3fab9ac31..a7e31f0946 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -77,6 +77,10 @@ else url_dir_list ?= ftp://$(gnu_rel_host)/gnu/$(PACKAGE) endif +# Override this in cfg.mk if you are using a different format in your +# NEWS file. +news-date-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. export LC_ALL = C @@ -570,7 +574,7 @@ sc_makefile_check: news-date-check: NEWS today=`date +%Y-%m-%d`; \ - if head $(srcdir)/NEWS | grep '^\*.* $(VERSION_REGEXP) ('$$today')' \ + if head $(srcdir)/NEWS | grep $(news-date-regexp) \ >/dev/null; then \ :; \ else \ |