[brasero] Added the auto generated ChangeLog stuff



commit c303937a2ab8f59ba2004128a4a38e3df2670921
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon May 25 08:49:09 2009 +0200

    Added the auto generated ChangeLog stuff
---
 Makefile.am  |   14 +++++++++++++-
 configure.in |    6 +++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index aab4fcf..4e3f565 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,10 +34,22 @@ DISTCLEANFILES = \
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libbrasero-media.pc
 
-# Copy all the spec files. Of cource, only one is actually used.
+# Copy all the spec files. Of course, only one is actually used.
 dist-hook:
 	for specfile in *.spec; do \
 		if test -f $$specfile; then \
 			cp -p $$specfile $(distdir); \
 		fi \
 	done
+	@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
diff --git a/configure.in b/configure.in
index 33cea7f..5b01b41 100644
--- a/configure.in
+++ b/configure.in
@@ -28,7 +28,11 @@ AC_DEFINE_UNQUOTED(BRASERO_MINOR_VERSION, $BRASERO_MINOR_VERSION, [minor version
 AC_DEFINE_UNQUOTED(BRASERO_SUB, $BRASERO_SUB, [sub version])
 AC_DEFINE_UNQUOTED(BRASERO_VERSION, $BRASERO_VERSION, [version])
 
-AM_INIT_AUTOMAKE(brasero, $BRASERO_VERSION)
+dnl this is what it used to be
+dnl AM_INIT_AUTOMAKE(brasero, $BRASERO_VERSION)
+
+AM_INIT_AUTOMAKE([foreign])
+
 AM_CONFIG_HEADER(config.h)
 
 AM_MAINTAINER_MODE



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