[ocrfeeder] Generate a ChangeLog file from git when running make dist
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Generate a ChangeLog file from git when running make dist
- Date: Thu, 8 Sep 2011 07:35:24 +0000 (UTC)
commit a8ee75220a4a848e01d9975eeed1e9aca7dc9112
Author: Alberto Garcia <agarcia igalia com>
Date: Sun Aug 7 12:25:31 2011 +0200
Generate a ChangeLog file from git when running make dist
Makefile.am | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index db6f580..f971ea1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,16 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src resources po bin help
+
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ ( cd "$(top_srcdir)" && \
+ $(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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]