]> git.0d.be Git - empathy.git/blobdiff - Makefile.am
Generate ChangeLog from svn commits. Copy generator from epiphany
[empathy.git] / Makefile.am
index e33ab3634038ade26a821f7631df316e13672066..374608ff63eaecd4bff548db1b12506b8723a3ea 100644 (file)
@@ -40,6 +40,18 @@ DISTCLEANFILES =             \
 # uninstall.
 distuninstallcheck_listfiles = find . -type f -print | grep -v '^\./var/scrollkeeper'
 
-dist-hook:
-       chmod a+w ${distdir}/ChangeLog
-       if test -d _darcs; then darcs changes >${distdir}/ChangeLog; fi
+# Build ChangeLog from SVN history (r470 was the first ChangeLog-less checkin).
+# Only build this when in an svn checkout.
+
+ChangeLog:
+       @if test -f $(top_srcdir)/.svn/entries; then \
+               svn log -v --xml -r HEAD:470 $(SVN_ROOT)/$(SVN_MODULE) | \
+                       xsltproc --stringparam strip-prefix "$(SVN_MODULE)/$(SVN_BRANCH)" \
+                                --stringparam include-rev "yes" $(top_srcdir)/svn2cl.xsl - > $@; \
+       fi
+       @cat $(top_srcdir)/ChangeLog.old >> $@
+
+dist: ChangeLog
+
+.PHONY: ChangeLog
+