[nautilus] Add makefile rules to generate ChangeLog
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus] Add makefile rules to generate ChangeLog
- Date: Fri, 17 Apr 2009 08:30:39 -0400 (EDT)
commit 8acf8338c97387af3b93793760a3b1d64e752a2c
Author: Alexander Larsson <alexl redhat com>
Date: Fri Apr 17 13:58:30 2009 +0200
Add makefile rules to generate ChangeLog
---
Makefile.am | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 8d2b5bf..61d117c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -58,3 +58,24 @@ DISTCLEANFILES = \
intltool-update
DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb --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 NAUTILUS2_26_2.. --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]