From: Nick Bowler Date: Wed, 12 Feb 2020 00:27:58 +0000 (-0500) Subject: Export GIT_DIR in generate-changelog rule. X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/commitdiff_plain/36d8d6594f34f1ff76b80a6ddf8a005c5ca4b24d Export GIT_DIR in generate-changelog rule. We set GIT_DIR in this build rule, but since it's not exported in the rule none of the commands will see it under normal circumstances. Easily fixed. --- diff --git a/Makefile.am b/Makefile.am index e8afbc6..28ebff9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -121,7 +121,7 @@ git_changelog_start = 2cd951c678998b2b0230c8eb25717ecf0f1dd2db dist-hook: generate-changelog generate-changelog: unfuck-distdir -: "$${GIT_DIR=$(top_srcdir)/.git}"; \ - test -d "$$GIT_DIR" || exit 0; { \ + export GIT_DIR; test -d "$$GIT_DIR" || exit 0; { \ $(PERL) -x $(top_srcdir)/build-aux/gitlog-to-changelog -- \ $(git_changelog_start).. && \ echo && \