[libwnck] build: Generate ChangeLog on make dist
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] build: Generate ChangeLog on make dist
- Date: Wed, 22 Feb 2012 14:11:19 +0000 (UTC)
commit 6e5daec328c1e57db9430974cdf4003d5f54c10b
Author: Vincent Untz <vuntz gnome org>
Date: Wed Feb 22 15:10:33 2012 +0100
build: Generate ChangeLog on make dist
Makefile.am | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index aa22a3c..72a5414 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,5 +28,18 @@ MAINTAINERCLEANFILES = \
$(srcdir)/m4/gtk-doc.m4 \
$(srcdir)/m4/intltool.m4
+CHANGELOG_GIT_RANGE = LIBWNCK_2_26_1..
+dist-hook:
+ $(AM_V_GEN)if test -d "$(srcdir)/.git"; then \
+ ( echo '# Generated by Makefile. Do not edit.'; echo; \
+ GIT_DIR="$(top_srcdir)/.git" ./missing --run \
+ git log $(CHANGELOG_GIT_RANGE) --no-color -M -C --name-status ) \
+ > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo A git checkout is required to generate ChangeLog >&2; \
+ fi
+
GITIGNOREFILES = $(PACKAGE)-\*.tar.{gz,bz2,xz}
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]