summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-02 13:40:29 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-02 13:41:25 -0700
commit5510698bbe765fc4d3fcdbc81a78d702895a05e9 (patch)
tree911fb72745f9f975b63b1693b889b93d20099c7c
parent65717ecbab432f4acd093d2efefd52bce66409d8 (diff)
Makes it easier for new projects with no tags yet to reuse
this snippet.
-rw-r--r--GNUmakefile3
1 files changed, 2 insertions, 1 deletions
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