[Telepathy-commits] [telepathy-sofiasip/master] Replaced the ChangeLog autogeneration dist-hook for darcs with one for git

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Tue Aug 26 06:29:13 PDT 2008


Copied the rule from telepathy-gabble.
---
 Makefile.am |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 133feda..971a72b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,5 +25,8 @@ SUBDIRS = \
 	tests
 
 dist-hook:
-	chmod ug+w ${distdir}/ChangeLog
-	if test -d _darcs; then darcs changes >${distdir}/ChangeLog; fi
+	chmod u+w ${distdir}/ChangeLog
+	if test -d ${top_srcdir}/.git; then \
+		git --work-tree=${top_srcdir} log --stat > ${distdir}/ChangeLog || \
+		git --work-tree=${top_srcdir} log > ${distdir}/ChangeLog; \
+	fi
-- 
1.5.6.3



More information about the Telepathy-commits mailing list