[Xfce4-commits] <libxfce4ui:master> Build ChangeLog during dist-check.
Nick Schermer
noreply at xfce.org
Fri Dec 18 11:34:02 CET 2009
Updating branch refs/heads/master
to 5a8f4e9ce6851dfbf356fe5430b4375c54bf2666 (commit)
from 1771d887be4660994f4024665c5b6061929a2651 (commit)
commit 5a8f4e9ce6851dfbf356fe5430b4375c54bf2666
Author: Nick Schermer <nick at xfce.org>
Date: Fri Dec 18 11:22:23 2009 +0100
Build ChangeLog during dist-check.
ChangeLog | 3 ---
Makefile.am | 9 +++++++++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index cf1dac7..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,3 +0,0 @@
-2008-01-05 Nick Schermer <nick at xfce.org>
-
- * Initial Import.
diff --git a/Makefile.am b/Makefile.am
index 0b8274f..1caea78 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,6 +14,15 @@ rpm: dist
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
@rm -f $(PACKAGE)-$(VERSION).tar.gz
+.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 = \
libxfce4ui.spec.in \
intltool-extract.in \
More information about the Xfce4-commits
mailing list