Fix NEWS generation in `make dist`
Avoid overwriting existing NEWS entries for the current tag
This commit is contained in:
parent
96cad841f8
commit
ce6b35154a
|
@ -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 $@)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue