summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.org>2011-04-19 11:30:21 +0200
committerHenrik Rydberg <rydberg@bitmath.org>2011-04-19 11:30:21 +0200
commitf3fc079bad26f5deb0acac4da4419a1a3b19fac1 (patch)
treed556c8df1d990744e9b5bf7d00f44be575c162fe
parent3c6f6f8f62c8fa0a6df902fc7f54f006248d21da (diff)
Hook up ChangeLog to be either bzr or git, depending which is available
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 183516c..a97bdb1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,15 @@ INCLUDES = $(top_srcdir)/include/
.PHONY: ChangeLog INSTALL
INSTALL:
$(INSTALL_CMD)
+
ChangeLog:
- bzr log > ChangeLog
+ @if test -d ".bzr"; then \
+ cmd=bzr; \
+ elif test -d ".git"; then \
+ cmd=git; \
+ else \
+ cmd="echo could not generate change"; \
+ fi; \
+ $${cmd} log > ChangeLog;
dist-hook: ChangeLog INSTALL