]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Run gitlog-to-changelog in source directory.
authorZack Weinberg <zack@owlfolio.org>
Tue, 19 Dec 2023 15:07:15 +0000 (10:07 -0500)
committerZack Weinberg <zack@owlfolio.org>
Tue, 19 Dec 2023 18:55:27 +0000 (13:55 -0500)
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).

Makefile.am

index 28bb4941d5178bb68b05ba5e98ab7e6e598f2c11..1db714bf74e1f2ef66982ed8c3901d36e43a9696 100644 (file)
@@ -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