]> git.draconx.ca Git - gob-dx.git/commitdiff
Export GIT_DIR in generate-changelog rule.
authorNick Bowler <nbowler@draconx.ca>
Wed, 12 Feb 2020 00:27:58 +0000 (19:27 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 12 Feb 2020 00:30:01 +0000 (19:30 -0500)
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.

Makefile.am

index e8afbc60007d0c14f730aa7d753853f9c952a875..28ebff90cf526cc50aa933b77ffdde630ad93cf3 100644 (file)
@@ -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 && \