[gthumb] Auto-generate the ChangeLog file, git-style



commit ac8384053608d2d0d921762c6319866ad7ce9ac8
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Sat May 2 15:58:51 2009 -0400

    Auto-generate the ChangeLog file, git-style
---
 Makefile.am |   16 +++++++++++++++-
 autogen.sh  |    1 -
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 2fe1cf2..517de23 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,8 @@ EXTRA_DIST = 			\
         intltool-extract.in	\
 	omf.make		\
 	xmldocs.make		\
-	gnome-doc-utils.make
+	gnome-doc-utils.make	\
+	ChangeLog.pre-git
 
 DISTCLEANFILES =                	\
 	po/.intltool-merge-cache	\
@@ -33,6 +34,19 @@ DISTCLEANFILES =                	\
 	intltool-update			\
 	gnome-doc-utils.make
 
+CLEANFILES = \
+	ChangeLog
+
 DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
 
 -include $(top_srcdir)/git.mk
+
+# 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
diff --git a/autogen.sh b/autogen.sh
index cdca6e3..d566b3f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -8,7 +8,6 @@ PKG_NAME="gThumb"
 REQUIRED_AUTOMAKE_VERSION=1.8
 
 (test -f $srcdir/configure.in \
-  && test -f $srcdir/ChangeLog \
   && test -d $srcdir/src) || {
     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
     echo " top-level $PKG_NAME directory"



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