From d2ed35594beef64f55eb1680ee87d9f7997fb35c Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 9 May 2013 13:55:15 +0200 Subject: [PATCH] announcement: cater to more flexible NEWS format * maint.mk (announcement): Here, be prepared to handle the case in which the first section of the NEWS file is dedicated to report future backward-incompatibilities and/or other warnings. Signed-off-by: Stefano Lattarini --- maint.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/maint.mk b/maint.mk index 77b072fce..8b7263981 100644 --- a/maint.mk +++ b/maint.mk @@ -290,7 +290,11 @@ announcement: NEWS && X \ && X "-*-*-*-" \ && X \ - && sed -n -e '/^~~~/q' -e p $(srcdir)/NEWS >> $@-t \ + && $(AWK) '\ + ($$0 == "New in $(VERSION):") { wait_for_end=1; } \ + (/^~~~/ && wait_for_end) { exit(0) } \ + { print } \ + ' <$(srcdir)/NEWS >> $@-t \ && mv -f $@-t $@ .PHONY: announcement CLEANFILES += announcement -- 2.47.2