[gnome-video-arcade] Generate a ChangeLog file in tarball releases.



commit 115e982401064c74e001f113556832b31ab74bc1
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jan 10 13:53:18 2010 -0500

    Generate a ChangeLog file in tarball releases.

 ChangeLog   |    4 ++++
 Makefile.am |   15 +++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..8cefc0f
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,4 @@
+2010-01-10  Matthew Barnes  <mbarnes redhat com>
+
+	* *: The ChangeLog is auto-generated when releasing. If you
+	are seeing this, use 'git log' for a detailed list of changes.
diff --git a/Makefile.am b/Makefile.am
index fa0d6fe..9fafcdf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,4 +38,19 @@ DISTCHECK_CONFIGURE_FLAGS =		\
 	--enable-gtk-doc		\
 	--disable-scrollkeeper
 
+# Generate a ChangeLog file from 'git log'
+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
+
 -include $(top_srcdir)/git.mk



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