[Xfce4-commits] <xfce4-panel:devel> Build ChangeLog during make dist.
Nick Schermer
noreply at xfce.org
Sun Jan 3 12:38:01 CET 2010
Updating branch refs/heads/devel
to dbd2a38ff9daf0f590e92863de4b4bc086169deb (commit)
from b7723418b3e7ebe7ab907b2c6f0ebcdde5f40ad4 (commit)
commit dbd2a38ff9daf0f590e92863de4b4bc086169deb
Author: Nick Schermer <nick at xfce.org>
Date: Wed Dec 30 14:30:20 2009 +0100
Build ChangeLog during make dist.
Makefile.am | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index e69de29..0000000
diff --git a/Makefile.am b/Makefile.am
index bb7a8c9..e5095a2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,15 @@ desktop_in_files = \
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
+.PHONY: ChangeLog
+
+ChangeLog: Makefile
+ (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
+ && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
+ || (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)
+
+dist-hook: ChangeLog
+
EXTRA_DIST = \
$(desktop_in_files) \
intltool-extract.in \
More information about the Xfce4-commits
mailing list