[Telepathy-commits] [telepathy-glib/master] Use git log to construct ChangeLog, rather than darcs changes.
Simon McVittie
simon.mcvittie at collabora.co.uk
Thu Aug 14 09:48:54 PDT 2008
Based on similar code I used in dbus-python.
Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
---
ChangeLog | 4 ++--
Makefile.am | 6 +++++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4174a97..8ae693c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,2 +1,2 @@
-This is a placeholder ChangeLog - use `darcs changes` instead.
-In distributed tarballs this is replaced by the output of `darcs changes`.
+This is a placeholder ChangeLog - use `git log` instead.
+In distributed tarballs this is replaced by the output of `git log --stat`.
diff --git a/Makefile.am b/Makefile.am
index 870a4e2..b231896 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,9 +14,13 @@ check-local::
egrep -A 5 '[F]IXME|[T]ODO|[X]XX' $(srcdir)/telepathy-glib/*.[ch] \
> FIXME.out || true
+# Use git log --stat if it works, else plain git log
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
maintainer-upload-docs:
rsync -rtvzPp --chmod=Dg+s,ug+rwX,o=rX docs/reference/html/ \
--
1.5.6.3
More information about the Telepathy-commits
mailing list