[gedit] Improve ChangeLog generation
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Subject: [gedit] Improve ChangeLog generation
- Date: Sat, 16 May 2009 16:06:41 -0400 (EDT)
commit 0063061bc63227c70210ca8be2117296aa7cc994
Author: Paolo Borelli <porelli gnome org>
Date: Sat May 16 18:33:25 2009 +0200
Improve ChangeLog generation
Use dist-hook so that the generated changelog goes only in distdir
---
Makefile.am | 35 ++++++++++++++++-------------------
1 files changed, 16 insertions(+), 19 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 8c42ac1..ce06074 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,9 @@ distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper
EXTRA_DIST = \
BUGS \
- ChangeLog \
+ ChangeLog-20011116 \
+ ChangeLog-20051212 \
+ ChangeLog-20090418 \
HACKING \
MAINTAINERS \
xmldocs.make \
@@ -26,25 +28,20 @@ DISTCLEANFILES = \
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --enable-gtk-doc
-distclean-local:
- if test $(srdcir) = .; then :; else \
- rm -f ChangeLog; \
- fi
-
-ChangeLog:
- @echo Creating $@
- @if test -d "$(srcdir)/.git"; then \
- (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GEDIT_2_26_1^^.. --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 >> $@)); \
+CHANGELOG_START = GEDIT_2_26_1
+
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ (GIT_DIR=$(top_srcdir)/.git \
+ ./missing --run git log $(CHANGELOG_START)^^.. --stat -M -C --name-status --date=short --no-color) | \
+ fmt --split-only > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; \
+ echo Failed to generate ChangeLog >&2 ); \
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 >> $@); \
+ echo A git clone is required to generate a ChangeLog >&2; \
fi
-.PHONY: ChangeLog
-
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]