diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index e33ab3634..374608ff6 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 + |