From: Zack Weinberg Date: Tue, 19 Dec 2023 15:07:15 +0000 (-0500) Subject: Run gitlog-to-changelog in source directory. X-Git-Tag: v2.72e~3 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9800e2e34aeaf6f102d9d581e4a8c41260ec6940;p=thirdparty%2Fautoconf.git Run gitlog-to-changelog in source directory. gitlog-to-changelog needs to run in the source directory so it can find the git metadata. This was masked in many cases because “git log” will look in parent directories for .git, but if you have your build directory completely outside the source tree then it can’t find it. * Makefile.am (gen-ChangeLog): Execute gitlog-to-changelog in $(top_srcdir). --- diff --git a/Makefile.am b/Makefile.am index 28bb4941..1db714bf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,8 +86,8 @@ gen_start_date = 2012-01-15 18:00:00 UTC .PHONY: gen-ChangeLog gen-ChangeLog: if test -d $(top_srcdir)/.git; then \ - $(top_srcdir)/build-aux/gitlog-to-changelog \ - --since='$(gen_start_date)' > $(distdir)/cl-t \ + (cd $(top_srcdir) && ./build-aux/gitlog-to-changelog \ + --since='$(gen_start_date)') > $(distdir)/cl-t \ && rm -f $(distdir)/ChangeLog \ && mv $(distdir)/cl-t $(distdir)/ChangeLog; \ fi