[build] Generate ChangeLog starting from the git import
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 11 May 2009 14:01:28 +0000 (15:01 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 11 May 2009 14:01:28 +0000 (15:01 +0100)
Instead of using the SVN entries to generate the ChangeLog we
should use the git-import tag and only start from the point in
the history when we switched to Git.

Makefile.am

index e2c500a..e84e9d7 100644 (file)
@@ -23,10 +23,11 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags
 dist-hook:
        @if test -d "$(srcdir)/.git"; \
        then \
-               echo Creating ChangeLog && \
-               ( cd "$(top_srcdir)" && \
-                 echo '# Generated by configure.  Do NOT edit.'; echo; \
-                 $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
+               from="git-import" ; \
+               echo Creating ChangeLog \
+               && ( cd "$(top_srcdir)" \
+                  && echo '# Generated by configure.  Do NOT edit.'; echo; \
+                  $(top_srcdir)/missing --run git log --stat $$from.. ) > ChangeLog.tmp \
                && mv -f ChangeLog.tmp "$(top_distdir)/ChangeLog" \
                || ( rm -f ChangeLog.tmp ; \
                     echo Failed to generate ChangeLog >&2 ); \