From a0d05c9d18f8b3d6a592626e92db47bd0d04d3e2 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 30 Jun 2008 18:21:50 +0000 Subject: Support git in the ChangeLog generation rule. svn path=/branches/gnome-2-22/; revision=8320 --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 930056b17..5d4dac92f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -48,7 +48,9 @@ distuninstallcheck_listfiles = find . -type f -print | grep -v 'icon-theme.cache # Only build this when in an svn checkout. ChangeLog: - @if test -f $(top_srcdir)/.svn/entries; then \ + @if test -f $(top_srcdir)/.git/HEAD; then \ + git log --stat > $@; \ + elif test -f $(top_srcdir)/.svn/entries; then \ svn log -v --xml -r HEAD:7394 $(SVN_ROOT)/$(SVN_MODULE)/$(SVN_BRANCH) | \ xsltproc --stringparam strip-prefix "$(SVN_MODULE)/$(SVN_BRANCH)" \ --stringparam include-rev "yes" $(top_srcdir)/svn2cl.xsl - > $@; \ -- cgit v1.2.3