From: Stefano Lattarini Date: Thu, 9 May 2013 11:55:15 +0000 (+0200) Subject: announcement: cater to more flexible NEWS format X-Git-Tag: v1.13.2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2ed35594beef64f55eb1680ee87d9f7997fb35c;p=platform%2Fupstream%2Fautomake.git 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 --- 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