From 170bb497d473817ca1811f5745021b1cf8c3863e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 30 Jun 2008 10:39:14 +0000 Subject: Support git for the ChangeLog generation rule. svn path=/trunk/; revision=8315 --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 3a3f7520a..8cf0c38de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,7 +43,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