From dea294a3b43db8f94bc590545c648c08e6e5a474 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 01 Oct 2019 00:30:00 -0400 Subject: Makefile.am: Generate ChangeLog --- diff --git a/Makefile.am b/Makefile.am index 568fd77..532fa97 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,6 +65,16 @@ version.c: $(wolfssl_OBJECTS) $(wolfssl_DEPENDENCIES) $(AM_V_GEN)printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \ "$(PACKAGE_VERSION_GIT)" >version.c +dist-hook: + set -e; \ + if [ -d '$(srcdir)/.git' ]; then \ + printf 'Generated file. Do not edit.\n\n' \ + >'$(distdir)/ChangeLog~'; \ + GIT_DIR='$(srcdir)/.git' git log --stat --color=never \ + >>'$(distdir)/ChangeLog~'; \ + mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \ + fi + release: sed "s/^Released: ????-??-??\$$/Released: $$(date '+%Y-%m-%d')/" \ '$(srcdir)/NEWS' >'$(srcdir)/NEWS~' -- cgit v0.9.1