]> git.ipfire.org Git - thirdparty/automake.git/commit
build: fix ChangeLog generation in external build directory
authorZack Weinberg <zackw@panix.com>
Fri, 21 Jan 2022 19:57:30 +0000 (14:57 -0500)
committerZack Weinberg <zackw@panix.com>
Fri, 21 Jan 2022 19:57:30 +0000 (14:57 -0500)
commit8813fac09f25114e2d0191b7c5bca50c544bb5a1
treeb1f598bcc5cc5777426f732952cf1743697bd120
parent5d02285845acfc20a4900a471c0e7c5e2ff390a0
build: fix ChangeLog generation in external build directory

When gitlog-to-changelog is run in a build directory that is neither the same
as, nor a subdirectory of, the source directory, it needs a --srcdir option or
it will fail to generate the changelog.  For instance

$ git clone https://git.savannah.gnu.org/git/automake.git

$ (cd automake && ./bootstrap)
$ mkdir b-automake
$ cd b-automake
$ ../automake/configure

$ make dist

  GEN      ChangeLog
gitlog-to-changelog:../s-automake/.git-log-fix: unused entry: 22729165f6bb902daeb8a4d8e7cb06982390f327
gitlog-to-changelog:../s-automake/.git-log-fix: unused entry: 3b369e6bbe0fb6d7359398935706c87dd9375cb6
make[2]: *** [../automake/maintainer/maint.mk:48: ChangeLog] Error 1

 * maintainer/maint.mk (gitlog_to_changelog_options): Add --srcdir option.
maintainer/maint.mk