From ce6b35154a69fdbc9ee131a6980c3007842131ca Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Fri, 9 Nov 2018 18:48:23 +0100 Subject: [PATCH] Fix NEWS generation in `make dist` Avoid overwriting existing NEWS entries for the current tag --- config.gnu.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.gnu.mk b/config.gnu.mk index 7e1823b..8061c3b 100644 --- a/config.gnu.mk +++ b/config.gnu.mk @@ -52,11 +52,11 @@ GEN_AUTHORS= (echo "This software was brought to you by:"; \ sed -e 's/^/- /g'; \ echo ""; \ echo "Thank you!") -GEN_NEWS= grep '^$(shell git tag -l)' $@ || \ - (touch $@; \ - (git tag -l $(shell git describe) -n999 ; \ - echo ""; \ - cat $@) \ +GEN_NEWS= grep '^$(shell git tag -n1 `git describe`)' $@ || \ + (touch $@; \ + (git tag -l $(shell git describe) -n999 ; \ + echo ""; \ + cat $@) \ > $@.latest && mv $@.latest $@)