summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-03-31 08:15:18 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-03-31 08:15:18 -0700
commitf88e49efc6842b2f1fc69e22b56967e63f782a91 (patch)
tree190327768be2118189dd0b29e6d1d48e1686628e
parent9346f7d36d5943993d67ffec63b97e0fb4c3a11b (diff)
Create ChangeLog from git during dist0.1.0
This is cobbled together from Xorg and gtk. Seems to work through distcheck.
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am14
2 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 1eac572..817f7dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,7 @@ libtool
ltmain.sh
missing
stamp-h1
+ChangeLog
test/previewer
test/mime
diff --git a/Makefile.am b/Makefile.am
index b4b5bc3..e75b49a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,15 @@
SUBDIRS = src test
+
+EXTRA_DIST = ChangeLog
+changelog_cmd = GIT_DIR=$(top_srcdir)/.git $(SHELL) $(top_srcdir)/missing \
+ --run git log
+ChangeLog:
+ $(AM_V_GEN)if $(changelog_cmd) > $(top_srcdir)/$@.tmp; then \
+ mv $(top_srcdir)/$@.tmp $(top_srcdir)/$@; \
+ else \
+ rm -f $(top_srcdir)/$@.tmp; \
+ touch $(top_srcdir)/$@; \
+ echo 'could not create $(top_srcdir)/$@'; \
+ fi
+
+.PHONY: ChangeLog