summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-11-02 22:39:36 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-11-02 22:39:36 (EDT)
commitfef28a310abd7e1eebc906dca00fc974c90b1194 (patch)
treee227f52d7e61c8c00faa671f5a4e619a4ef39a5b
parent4675b610d063bd155105b62c067b0d1b612580a2 (diff)
downloadoverworld-rpg-fef28a310abd7e1eebc906dca00fc974c90b1194.zip
overworld-rpg-fef28a310abd7e1eebc906dca00fc974c90b1194.tar.gz
overworld-rpg-fef28a310abd7e1eebc906dca00fc974c90b1194.tar.bz2
Generate ChangeLog.
-rw-r--r--Makefile.am8
-rwxr-xr-xautogen.sh3
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index a937015..6b2b856 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,6 +35,14 @@ uninstall-hook:
fi; \
done
+dist-hook:
+ if [ -d '$(srcdir)/.git' ]; then \
+ printf 'Generated file. Do not edit.\n\n' \
+ >'$(distdir)/ChangeLog~'; \
+ git log --stat >>'$(distdir)/ChangeLog~'; \
+ mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \
+ fi
+
.xcf.png:
$(XCF2PNG) -f -o $@ $<
diff --git a/autogen.sh b/autogen.sh
index 2a01086..030bc06 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,6 +7,9 @@ srcdir="${0%/*}"
{(
cd "${srcdir}"
[ -d build-aux ] || mkdir build-aux
+ cat >ChangeLog <<-EOF
+This file is generated upon release. Run \`git log\` for a list of changes.
+EOF
aclocal
autoconf
autoheader