Commit f005b1ac authored by Timothy Sample's avatar Timothy Sample
Browse files

Generate ChangeLog from Git.

* ChangeLog: Update Git log URL and add a copyright notice.
* (gen-ChangeLog): Use 'gitlog-to-changelog' to generate
the ChangeLog.
parent 6f81266e
Normally a ChangeLog is generated at "make dist" time and available in
source tarballs.
If not, see the Git commit log at <>.
If not, see the Git commit log:
The following notice will be appended to the generated ChangeLog.
Copyright © 2019 Timothy Sample <>
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
......@@ -200,14 +200,15 @@ dist-hook: gen-ChangeLog
.PHONY: gen-ChangeLog
echo "This is the first release, so there are no changes yet!" \
> $(distdir)/ChangeLog-t
# Once we release a first version we can generate the ChangeLog from
# Git and have it only include changes since the first release.
# $(top_srcdir)/build-aux/gitlog-to-changelog \
# > $(distdir)/ChangeLog-t
rm -f $(distdir)/ChangeLog
mv $(distdir)/ChangeLog-t $(distdir)/ChangeLog
$(AM_V_GEN)if test -d .git; then \
{ $(top_srcdir)/build-aux/gitlog-to-changelog \
--format='%s%n%n%b%n' -- v0.1.. && \
echo && \
sed -n -e '/^Copyright/,$$p' < $(top_srcdir)/ChangeLog; \
} > $(distdir)/ChangeLog-t && \
{ rm -f $(distdir)/ChangeLog && \
mv $(distdir)/ChangeLog-t $(distdir)/ChangeLog; } \
set -e; \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment