From b5fe5d12affbd6ea88786392fbb8022e83ff1e6b Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Thu, 13 Dec 2012 12:24:04 +0000 Subject: Generate ChangeLog from vcs when creating the tarball with make dist respectively make distcheck. svn path=/projects/eselect-java/trunk/; revision=9126 --- AUTHORS | 1 + ChangeLog | 1 + Makefile.am | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/AUTHORS b/AUTHORS index e69de29..a78155c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -0,0 +1 @@ +sera:Ralph Sennhauser diff --git a/ChangeLog b/ChangeLog index e69de29..c21c815 100644 --- a/ChangeLog +++ b/ChangeLog @@ -0,0 +1 @@ +The ChangeLog is generated using svn2cl on `make dist`, use "svn log" instead. diff --git a/Makefile.am b/Makefile.am index f0b9a58..780af9c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,3 +16,11 @@ EXTRA_DIST = \ COPYING \ NEWS \ README + +dist-hook: + if test -d "$(srcdir)"/.svn ; then \ + echo "Generating ChangeLog ..." ; \ + ( cd "$(top_srcdir)" && svn2cl --authors AUTHORS -o "$(top_distdir)"/ChangeLog ) ; \ + else \ + echo "Needs a svn checkout to generate a ChangeLog" ; \ + fi -- cgit v1.2.3-65-gdbad