[Telepathy-commits] [telepathy-salut/master] Copy git dist-hook from gabble

Sjoerd Simons sjoerd.simons at collabora.co.uk
Wed Aug 20 07:49:36 PDT 2008


---
 Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 9193be0..313cea8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,10 @@ SUBDIRS = tools extensions lib src data m4 tests docs
 
 dist-hook:
 	chmod u+w ${distdir}/ChangeLog
-	if test -d _darcs; then darcs changes >${distdir}/ChangeLog; fi
+	if test -d ${top_srcdir}/.git; then \
+		git log --stat > ${distdir}/ChangeLog || \
+		git log > ${distdir}/ChangeLog; \
+	fi
 
 valgrind:
 	cd tests && $(MAKE) valgrind
-- 
1.5.6.3




More information about the Telepathy-commits mailing list