]> Savannah Git Hosting - gnulib.git/commitdiff
announce-gen: Allow 'make release' to work any day.
authorSimon Josefsson <simon@josefsson.org>
Fri, 31 Jan 2025 23:58:45 +0000 (00:58 +0100)
committerSimon Josefsson <simon@josefsson.org>
Fri, 31 Jan 2025 23:58:45 +0000 (00:58 +0100)
* top/maint.mk (today): Use regexp rather than current time.

ChangeLog
top/maint.mk

index 2f0e8d34e7687b760cafebee953bdc9c6e19df9e..89674821a091888c74674feeb8705057b96894a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-02-01  Simon Josefsson  <simon@josefsson.org>
+
+       announce-gen: Allow 'make release' to work any day.
+       * top/maint.mk (today): Use regexp rather than current time.
+
 2025-02-01  Simon Josefsson  <simon@josefsson.org>
 
        announce-gen: Deal with 'guix --version'.
index 78c757d8f1e2b60418cd3bc424dcf5e692d90836..fb2fba93c9201557b50f6a11e8fbc677c1e2af59 100644 (file)
@@ -148,7 +148,7 @@ url_dir_list ?= $(if $(call _equal,$(gnu_rel_host),ftp.gnu.org),    \
 
 # Override this in cfg.mk if you are using a different format in your
 # NEWS file.
-today = $(shell date +%Y-%m-%d)
+today = [0-9]{4,}-[0-9][0-9]-[0-9][0-9]
 
 # Select which lines of NEWS are searched for $(news-check-regexp).
 # This is a sed line number spec.  The default says that we search