[gconf-editor] Generate ChangeLog file from git log
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gconf-editor] Generate ChangeLog file from git log
- Date: Thu, 30 Apr 2009 09:10:24 -0400 (EDT)
commit dd126519f52155008b1483aa98217f8f1b77732c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 30 15:09:04 2009 +0200
Generate ChangeLog file from git log
Autogenerate the ChangeLog file from git log output.
---
ChangeLog => ChangeLog.pre-git | 0
Makefile.am | 17 +++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog.pre-git
similarity index 100%
rename from ChangeLog
rename to ChangeLog.pre-git
diff --git a/Makefile.am b/Makefile.am
index 788287d..d732ce3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,7 @@ ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
autogen.sh \
+ ChangeLog.pre-git \
MAINTAINERS \
gnome-doc-utils.make
@@ -14,3 +15,19 @@ DISTCLEANFILES = \
gnome-doc-utils.make
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
+
+ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GCONF_EDITOR_2_26_0.. --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $ tmp \
+ && mv -f $ tmp $@ \
+ || ($(RM) $ tmp; \
+ echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+ (test -f $@ || echo git-log is required to generate this file >> $@)); \
+ else \
+ test -f $@ || \
+ (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+ echo A git checkout and git-log is required to generate this file >> $@); \
+ fi
+
+.PHONY: ChangeLog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]