From 5510698bbe765fc4d3fcdbc81a78d702895a05e9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 2 Oct 2009 13:40:29 -0700 Subject: GNUmakefile: SINCE variable may be unset Makes it easier for new projects with no tags yet to reuse this snippet. --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 0a1a035..44cebb0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -153,10 +153,11 @@ NEWS: GIT-VERSION-FILE mv $@+ $@ SINCE = 0.91.0 +ChangeLog: log_range = $(shell test -n "$(SINCE)" && echo v$(SINCE)..) ChangeLog: GIT-VERSION-FILE @echo "ChangeLog from $(GIT_URL) ($(SINCE)..$(GIT_VERSION))" > $@+ @echo >> $@+ - git log v$(SINCE).. | sed -e 's/^/ /' >> $@+ + git log $(log_range) | sed -e 's/^/ /' >> $@+ mv $@+ $@ news_atom := http://unicorn.bogomips.org/NEWS.atom.xml -- cgit v1.2.3-24-ge0c7