Replace static ChangeLog with dist-hook to generate from git log
authorJames Cloos <cloos@jhcloos.com>
Thu, 6 Dec 2007 21:39:08 +0000 (16:39 -0500)
committerJames Cloos <cloos@jhcloos.com>
Thu, 6 Dec 2007 21:39:08 +0000 (16:39 -0500)
ChangeLog [deleted file]
Makefile.am

diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644 (file)
index c722b51..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,4 +0,0 @@
-2005-12-14  Kevin E. Martin  <kem-at-freedesktop-dot-org>
-
-       * configure.ac:
-       Update package version number for final X11R7 release candidate.
index 61c73c6..f463c81 100644 (file)
@@ -10,3 +10,13 @@ pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = videoproto.pc
 
 EXTRA_DIST = autogen.sh videoproto.pc.in
+
+EXTRA_DIST += ChangeLog
+MAINTAINERCLEANFILES = ChangeLog
+
+.PHONY: ChangeLog
+
+ChangeLog:
+       (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