[gnome-mastermind] Autogenerate ChangeLog



commit cd6481f21c4a78a8ea89de353a6cbb218bd71a10
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Tue Apr 21 15:48:23 2009 +0200

    Autogenerate ChangeLog
    
    Add dist-hook rule to autogenerate ChangeLog on distribution
    Taken from http://live.gnome.org/Git/ChangeLog
---
 Makefile.am |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 429ca12..e894bf4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,3 +35,18 @@ pkgdata_DATA =  AUTHORS    \
 	TODO       
 
 ACLOCAL_AMFLAGS = -I m4
+
+#autogenerate ChangeLog for distribution
+dist-hook:
+	@if test -d "$(srcdir)/.git"; \
+        then \
+                echo Creating ChangeLog && \
+                ( cd "$(top_srcdir)" && \
+                  echo '# Generated by Makefile. Do not edit.'; echo; \
+                  $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
+                && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+                || ( rm -f ChangeLog.tmp ; \
+                     echo Failed to generate ChangeLog >&2 ); \
+        else \
+                echo A git clone is required to generate a ChangeLog >&2; \
+        fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]