From c15466cbbd83a69ac733fb5645f9c5df815d9250 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 12 Dec 2007 17:53:16 +0000 Subject: [PATCH] Generate ChangeLog from svn commits. Copy generator from epiphany svn path=/trunk/; revision=474 --- ChangeLog => ChangeLog.old | 0 Makefile.am | 18 ++- configure.ac | 8 + svn2cl.xsl | 295 +++++++++++++++++++++++++++++++++++++ 4 files changed, 318 insertions(+), 3 deletions(-) rename ChangeLog => ChangeLog.old (100%) create mode 100644 svn2cl.xsl diff --git a/ChangeLog b/ChangeLog.old similarity index 100% rename from ChangeLog rename to ChangeLog.old diff --git a/Makefile.am b/Makefile.am index e33ab363..374608ff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 + diff --git a/configure.ac b/configure.ac index c75d58ad..bd6df769 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,14 @@ dnl AC_DEFINE(LIBTELEPATHY_DISABLE_DEPRECATED, 1, [Disable deprecated libtelepat GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal` AC_SUBST(GLIB_GENMARSHAL) +dnl ----------------------------------------------------------- +dnl SVN for ChangeLog generation +dnl ----------------------------------------------------------- + +AC_SUBST([SVN_ROOT],[http://svn.gnome.org/svn]) +AC_SUBST([SVN_MODULE],[empathy]) +AC_SUBST([SVN_BRANCH],["trunk"]) + dnl ----------------------------------------------------------- dnl Language Support dnl ----------------------------------------------------------- diff --git a/svn2cl.xsl b/svn2cl.xsl new file mode 100644 index 00000000..fec81543 --- /dev/null +++ b/svn2cl.xsl @@ -0,0 +1,295 @@ + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + &newl; + + + + + + + + + + + + + + + + + + + + + + + + + + + &newl; + + + + + &space;&space; + + + + &newl;&newl; + + + + + + + + + [r + + ]&space; + + + + &tab;*&space; + + + + + + + + + + + + + + &space; + + + + + + + + + + + + + + + + ,&space; + + + + + + :&space; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + &newl; + + + + + + + + + + + + + + + + + + + &newl;&tab;&space;&space; + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.2