[gcompris/GCOMPRIS_8_3] Create the ChangeLog automatically from git log.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [gcompris/GCOMPRIS_8_3] Create the ChangeLog automatically from git log.
- Date: Mon, 13 Jul 2009 13:07:24 +0000 (UTC)
commit e5109df8aad999e3f52b7e5942e22a02cb5b34c6
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Mon Jul 13 15:01:09 2009 +0200
Create the ChangeLog automatically from git log.
Makefile.am | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 8aa8795..854c735 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,6 +74,18 @@ dist-hook:
$(mkinstalldirs) $(distdir)/$(PACKAGE_DATA_DIR); \
cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf - --exclude "Makefile.in" --exclude "Makefile" --exclude "*~" --exclude ".*" --exclude .svn --exclude .xvpics * | ( cd ../$(distdir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \
fi
+ @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
CONFIG_CLEAN_FILES = gcompris.desktop gcompris-edit.desktop config.h.mingw \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]