From: Alfred M. Szmidt Date: Sat, 5 Dec 2009 04:27:40 +0000 (-0700) Subject: maintainer-makefile: allow customization of NEWS entry format X-Git-Tag: v0.1~5104 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=9ecc3fc82134dcc8b5ced17af8e46599c5ea5635;p=gnulib.git 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 --- diff --git a/ChangeLog b/ChangeLog index 48e102661..bba40edf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-04 Alfred M. Szmidt + + maintainer-makefile: allow customization of NEWS entry format + * top/maint.mk (news-date-regexp): New overridable variable. + (news-date-check): Use it. + 2009-12-04 Eric Blake mgetgroups: add xgetgroups, and avoid ENOSYS failures diff --git a/top/maint.mk b/top/maint.mk index c3fab9ac3..a7e31f094 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 \