So that the file generated by "make announcement" is correct also
for beta releases.

* maint.mk (announcement): Relax the awk program processing NEWS a
little.

Signed-off-by: Stefano Lattarini <stefano.lattar...@gmail.com>
---
 maint.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/maint.mk b/maint.mk
index 3071360..cfbfb10 100644
--- a/maint.mk
+++ b/maint.mk
@@ -294,8 +294,8 @@ announcement: NEWS
          && X "-*-*-*-" \
          && X \
          && $(AWK) '\
-               ($$0 == "New in $(VERSION):") { wait_for_end=1; } \
-               (/^~~~/ && wait_for_end) { exit(0) } \
+               ($$0 ~ /^New in .*:/) { wait_for_end=1; } \
+               (/^~~~/ && wait_for_end) { print; exit(0) } \
                { print } \
             ' <$(srcdir)/NEWS >> $@-t \
          && mv -f $@-t $@
-- 
1.8.3.rc3.8.g5e49f30


Reply via email to