diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-10-01 00:30:00 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-10-01 00:30:00 (EDT) |
commit | dea294a3b43db8f94bc590545c648c08e6e5a474 (patch) | |
tree | c670631ce19cb86dc080c7bfd30d97ac93bd8e9e | |
parent | db6ee6389ba81ed6d400521bcca780bf50fbd391 (diff) |
Makefile.am: Generate ChangeLog
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
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~' |