[grilo-plugins/0.1.x] doc: Generate a ChangeLog file from git when running make dist



commit a5a94276287065ecf936b976e429590ccc4e55ca
Author: Alberto Garcia <agarcia igalia com>
Date:   Fri Jul 1 16:58:26 2011 +0300

    doc: Generate a ChangeLog file from git when running make dist

 Makefile.am |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b09aa4f..5d0af2b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,3 +32,16 @@ EXTRA_DIST = ./m4/grilo.m4
 
 distclean-local:
 	-rm -rf autom4te.cache
+
+dist-hook:
+	@if test -d "$(srcdir)/.git"; \
+	then \
+		echo Creating ChangeLog && \
+		( cd "$(top_srcdir)" && \
+		  $(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]