[evolution-rss] Generate ChangeLog files for tarball releases.



commit ba125eaa85ab0d09076a15b53cf75eebfbdc0788
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun Apr 4 10:40:58 2010 +0300

    Generate ChangeLog files for tarball releases.

 ChangeLog   |    4 ++++
 Makefile.am |   39 +++++++++++++++++++++++----------------
 2 files changed, 27 insertions(+), 16 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..626f10a
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,4 @@
+2010-04-04  Lucian Langa  <lucilanga gnome org>
+
+	* *: 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 8ac8bbf..618b951 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,9 +3,9 @@ SUBDIRS = pixmaps po src
 ACLOCAL_AMFLAGS = -I m4
 
 INTLTOOL =                      \
-        intltool-extract.in     \
-        intltool-merge.in       \
-        intltool-update.in
+	intltool-extract.in     \
+	intltool-merge.in       \
+	intltool-update.in
 
 EXTRA_DIST = \
 	$(INTLTOOL)		\
@@ -16,20 +16,10 @@ EXTRA_DIST = \
 	server.mk		\
 	FAQ
 
-# Build ChangeLog from GIT history
-ChangeLog:
-	@if test -d $(top_srcdir)/.git; then \
-	GIT_DIR="$(top_srcdir)/.git" git log --stat > $@; \
-	fi
-
-dist: ChangeLog
-
-.PHONY: ChangeLog
-
 DISTCLEANFILES = \
-  intltool-extract \
-  intltool-merge \
-  intltool-update
+	intltool-extract \
+	intltool-merge \
+	intltool-update
 
 GITIGNOREFILES= 	aclocal.m4				\
 			compile					\
@@ -41,4 +31,21 @@ GITIGNOREFILES= 	aclocal.m4				\
 			m4/lt*.m4				\
 			src/GNOME_Evolution_RSS_2.26.server
 
+
+# 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 \
+		  EVOLUTION-RSS_0_1_4..) > 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]