From 580f3650ea8c3c01e5f8b0986df36822033225b5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 02 Mar 2014 14:59:23 -0500 Subject: Generate ChangeLog. --- diff --git a/Makefile.am b/Makefile.am index 5ae8b1b..dbcd47b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -115,7 +115,16 @@ uninstall-hook: really-clean: distclean rm -Rf $(srcdir)/aclocal.m4 $(srcdir)/autom4te.cache/ \ $(srcdir)/configure \ - $(srcdir)/build-aux/ $(srcdir)/INSTALL $(srcdir)/Makefile.in + $(srcdir)/build-aux/ $(srcdir)/INSTALL $(srcdir)/Makefile.in \ + $(srcdir)/ChangeLog + +dist-hook: + if [ -d '$(srcdir)/.git' ]; then \ + printf 'Generated file. Do not edit.\n\n' \ + >'$(distdir)/ChangeLog~'; \ + git log --stat >>'$(distdir)/ChangeLog~'; \ + mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \ + fi test: @set -e; \ diff --git a/autogen.sh b/autogen.sh index c90bb39..e4043f8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -7,6 +7,9 @@ srcdir="${0%/*}" {( cd "${srcdir}" [ -d build-aux ] || mkdir build-aux + cat >ChangeLog <<-EOF +This file is generated upon release. Run \`git log\` for a list of changes. +EOF aclocal autoconf automake --add-missing --copy -- cgit v0.9.1