* 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 <stefano.lattar...@gmail.com>
---
 maint.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/maint.mk b/maint.mk
index 77b072f..191de41 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
-- 
1.8.3.rc0.19.g7e6a0cc


Reply via email to