about summary refs log tree commit homepage
path: root/GNUmakefile
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 /GNUmakefile
parent65717ecbab432f4acd093d2efefd52bce66409d8 (diff)
downloadunicorn-5510698bbe765fc4d3fcdbc81a78d702895a05e9.tar.gz
Makes it easier for new projects with no tags yet to reuse
this snippet.
Diffstat (limited to 'GNUmakefile')
-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