summaryrefslogtreecommitdiff
path: root/maintainer
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-05-09 14:14:00 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-05-09 14:14:00 +0200
commit25194b6274e0c336c40cd1903565cdc7afaabf7c (patch)
tree9ba27f9b3e7667891c98adfee6f018f5e623c102 /maintainer
parent1667d369091fe41d2bbdf645490a29d45142556f (diff)
parentd2ed35594beef64f55eb1680ee87d9f7997fb35c (diff)
downloadautomake-25194b6274e0c336c40cd1903565cdc7afaabf7c.tar.gz
Merge branch 'branch-1.13.2' into maint
* branch-1.13.2: announcement: cater to more flexible NEWS format
Diffstat (limited to 'maintainer')
-rw-r--r--maintainer/maint.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/maintainer/maint.mk b/maintainer/maint.mk
index 56c52beef..ac29a72da 100644
--- a/maintainer/maint.mk
+++ b/maintainer/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