Replace static ChangeLog with dist-hook to generate from git log
authorAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 17 Jul 2007 18:04:16 +0000 (11:04 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 17 Jul 2007 18:04:16 +0000 (11:04 -0700)
ChangeLog [deleted file]
Makefile.am

diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644 (file)
index c81f279..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,38 +0,0 @@
-2006-04-26  Adam Jackson  <ajax@freedesktop.org>
-
-       * configure.ac:
-       Bump to 1.0.1
-
-2006-03-22  Matthias Hopf  <mhopf@suse.de>
-
-       * handle.c: (do_pointer):
-       Allow changing of only a few buttons (not all).
-
-2005-12-14  Kevin E. Martin  <kem-at-freedesktop-dot-org>
-
-       * configure.ac:
-       Update package version number for final X11R7 release candidate.
-
-2005-12-06  Kevin E. Martin  <kem-at-freedesktop-dot-org>
-
-       * Makefile.am:
-       Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
-
-2005-12-03  Kevin E. Martin  <kem-at-freedesktop-dot-org>
-
-       * configure.ac:
-       Update package version number for X11R7 RC3 release.
-
-2005-10-18  Kevin E. Martin  <kem-at-freedesktop-dot-org>
-
-       * configure.ac:
-       Update package version number for RC1 release.
-
-2005-09-28  Kristian Høgsberg  <krh@redhat.com>
-
-       * AUTHORS: Copy bits from COPYING here.
-
-       * README: Copy first paragraph from man page.
-
-       * Makefile.am (EXTRA_DIST): Add swap.km.
-
index c0e91ec..aedac7d 100644 (file)
@@ -36,6 +36,8 @@ appman_PRE = \
         xmodmap.man
 
 EXTRA_DIST = \
+       ChangeLog \
+       autogen.sh \
        swap.km
 
 appmandir = $(APP_MAN_DIR)
@@ -68,3 +70,12 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man
 
 .man.$(APP_MAN_SUFFIX):
        sed $(MAN_SUBSTS) < $< > $@
+
+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