[libwnck/gnome-2-32] build: Generate ChangeLog on make dist



commit d4cdda0eafc3b6573892a02b6fc6385b43c2610b
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Feb 22 15:10:33 2012 +0100

    build: Generate ChangeLog on make dist

 Makefile.am |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 452a266..80d6f99 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,4 +30,17 @@ MAINTAINERCLEANFILES = \
 	$(srcdir)/m4/gtk-doc.m4 \
 	$(srcdir)/m4/intltool.m4
 
+CHANGELOG_GIT_RANGE = LIBWNCK_2_26_1..
+dist-hook:
+	$(AM_V_GEN)if test -d "$(srcdir)/.git"; then \
+	  ( echo '# Generated by Makefile. Do not edit.'; echo; \
+	    GIT_DIR="$(top_srcdir)/.git" ./missing --run \
+	    git log $(CHANGELOG_GIT_RANGE) --no-color -M -C --name-status ) \
+	  > ChangeLog.tmp \
+	  && mv -f ChangeLog.tmp $(distdir)/ChangeLog \
+	  || ( rm -f ChangeLog.tmp ; echo Failed to generate ChangeLog >&2 ); \
+	else \
+	  echo A git checkout is required to generate ChangeLog >&2; \
+	fi
+
 -include $(top_srcdir)/git.mk



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