* 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.lattarini@gmail.com>
&& 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