]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: prepare GIT-VERSION-GEN for out-of-tree builds
authorPatrick Steinhardt <ps@pks.im>
Tue, 11 Mar 2025 10:06:37 +0000 (11:06 +0100)
committerPatrick Steinhardt <ps@pks.im>
Tue, 13 May 2025 06:27:11 +0000 (08:27 +0200)
commit3ef470fa5127b9858d203990211f4375d38d5dd6
tree4fd670f999b960a7a1ed805549f4fee3dbc9d835
parent3271d2e9e71678cdc22378b1fd58c07641f8c424
git-gui: prepare GIT-VERSION-GEN for out-of-tree builds

The GIT-VERSION-GEN unconditionally writes version information into the
source directory in the form of the "GIT-VERSION-FILE". We are about to
introduce the Meson build system though, which enforces out-of-tree
builds by default, and in that context we cannot continue to write
version information into the source tree.

Prepare the script for out-of-tree builds by treating the source
directory different from the output file.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
GIT-VERSION-GEN
Makefile