[anjal] Generate ChangeLogs on make dist
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Generate ChangeLogs on make dist
- Date: Mon, 22 Jun 2009 01:36:31 -0400 (EDT)
commit 3e8145ccfb9de438a45a632f8133bf0c16734d47
Author: Srinivasa Ragavan <sragavan novell com>
Date: Mon Jun 22 11:07:20 2009 +0530
Generate ChangeLogs on make dist
ChangeLog => ChangeLog.archive | 0
Makefile.am | 14 ++++++++++++++
configure.ac | 1 +
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog.archive
similarity index 100%
rename from ChangeLog
rename to ChangeLog.archive
diff --git a/Makefile.am b/Makefile.am
index 80e11d2..a3dc3b6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,3 +31,17 @@ dist-hook:
EXTRA_DIST = anjal.desktop
#
+#
+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
diff --git a/configure.ac b/configure.ac
index 088bab9..9b0ce8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,7 @@
AC_INIT(anjal, 0.1)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]