[gnome-scan] Add a rule to generate ChangeLog
- From: Philipp Sadleder <phsadleder src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-scan] Add a rule to generate ChangeLog
- Date: Fri, 8 May 2009 10:38:46 -0400 (EDT)
commit c5bb75f27439c40973f4568ce233d239250ccad0
Author: Philipp Sadleder <philipp sadleder de>
Date: Tue Apr 21 17:22:44 2009 +0200
Add a rule to generate ChangeLog
We use the same rule pango uses to create a ChangeLog file with the help
of git-log. The format is somewhat different from traditional ChangeLog,
but it contains the relevant information.
---
Makefile.am | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 4d5f72e..c156bf3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,7 @@ po/POTFILES.in: $(C)
@echo $(desktop_IN) >> $@
EXTRA_DIST += \
- ChangeLog \
+ ChangeLog.pre-0-7-1 \
MAINTAINERS \
intltool-extract.in \
intltool-merge.in \
@@ -38,6 +38,8 @@ EXTRA_DIST += \
po/POTFILES.in \
$(desktop_IN)
+BUILT_EXTRA_DIST = \
+ ChangeLog
DISTCLEANFILES = \
intltool-extract \
@@ -52,3 +54,19 @@ dist-hook:
cp -p $$specfile $(distdir); \
fi \
done
+
+ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GNOME_SCAN_0_7_1.. --stat) | 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]