[moserial] Generate ChangeLog automatically during make dist



commit 5bd96d680da9d7016d5b9554368c212c08b0e042
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Fri Apr 17 15:13:45 2009 -0400

    Generate ChangeLog automatically during make dist
    
    Also, move the old ChangeLog to ChangeLog.pre-git, and
    add the empty m4 directory (with a .gitignore file in it
    to make git happy about an empty directory).
---
 ChangeLog => ChangeLog.pre-git |    0
 Makefile.am                    |   16 ++++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog.pre-git
similarity index 100%
rename from ChangeLog
rename to ChangeLog.pre-git
diff --git a/Makefile.am b/Makefile.am
index f5f6c8d..05faac9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -71,8 +71,13 @@ EXTRA_DIST = \
         omf.make                \
         xmldocs.make            \
         gnome-doc-utils.make	\
+	MAINTAINERS		\
+	ChangeLog.pre-git	\
 	$(NULL)
 
+CLEANFILES = \
+	ChangeLog
+
 DISTCLEANFILES = \
 	intltool-extract \
 	intltool-update \
@@ -82,3 +87,14 @@ DISTCLEANFILES = \
 	$(NULL)
 
 DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
+
+
+# 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/m4/.gitignore b/m4/.gitignore
new file mode 100644
index 0000000..e69de29



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