From 0fb4e7e14c805bd9eacbb41cbbc192575803f7bf Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Wed, 7 Apr 2010 15:36:24 +0000 Subject: [PATCH] Add infrastructure for generating the ChangeLog. --- AUTHORS | 2 ++ Makefile.am | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/AUTHORS b/AUTHORS index e69de29..85d1f74 100644 --- a/AUTHORS +++ b/AUTHORS @@ -0,0 +1,2 @@ +rconty@il4p.fr:Romuald Conty +romain.tartiere:Romain Tartière diff --git a/Makefile.am b/Makefile.am index 96c790b..9f1d2d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,4 +6,16 @@ SUBDIRS = libfreefare test examples pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libfreefare.pc +dist-hook: + @if test -d "$(srcdir)/.svn"; then \ + echo "Creating ChangeLog..." && \ + ( cd "$(top_srcdir)" && \ + echo '# Generated by Makefile. Do not edit.'; echo; \ + $(top_srcdir)/missing --run svn2cl --authors=AUTHORS --strip-prefix=/trunk/libfreefare --stdout ) > ChangeLog.tmp \ + && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ + || ( rm -f ChangeLog.tmp ; \ + echo "Failed to generate ChangeLog" >&2 ); \ + else \ + echo "A svn checkout is required to generate a ChangeLog" >&2; \ + fi