X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=Makefile.am;h=29a89d2138e6b43a8e4b929c40b4da16209aa135;hb=2e5f34aa5f067b2d169d82bfc3c140276174b06f;hp=bd1587a24cb8fbddbb4a3d9c867db5b7a10f2e8e;hpb=743fdb8a79e771cfbd98ed53a66a4d129f8fe2f6;p=8sync.git diff --git a/Makefile.am b/Makefile.am index bd1587a..29a89d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,3 +69,14 @@ EXTRA_DIST = \ $(TESTS) \ pre-inst-env.in \ tests/utils.scm + +dist-hook: gen-ChangeLog +# gen-AUTHORS might be useful to borrow from Guix + +gen-ChangeLog: + if test -d .git; then \ + $(top_srcdir)/build-aux/gitlog-to-changelog --since 2015-11-28 \ + > $(distdir)/cl-t; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi