summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am10
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~'