[gok] Switch to auto-generated ChangeLog



commit b2e72a063b57b356ae0688a5a08483d42cf40b8f
Author: Gerd Kohlberger <gerdk src gnome org>
Date:   Sun Apr 26 18:51:24 2009 +0200

    Switch to auto-generated ChangeLog
    
    The ChangeLog file will be created during 'make dist' and included
    in the release tarball. po/ChangeLog and ChangeLog are no longer
    used. Please use detailed commit messages instead.
    
    Additional infos:
    http://live.gnome.org/Git/ChangeLog
    http://live.gnome.org/Git/CommitMessages
---
 ChangeLog   |    2 ++
 Makefile.am |   15 +++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..2511e69
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,2 @@
+	* *: 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 91109b7..0ec6049 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -165,6 +165,21 @@ gokwebdoc.tar.gz: README INSTALL help/gok/C/gok.xml
 	tar czf gokwebdoc.tar.gz gokwebdoc
 	rm -rf gokwebdoc
 
+# Generate ChangeLog for releases
+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
+
 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
 CLEANFILES = $(kbd_files)
 DISTCLEANFILES =			\



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