git/ci
Patrick Steinhardt 4838deab65 Makefile: refactor GIT-VERSION-GEN to be reusable
Our "GIT-VERSION-GEN" script always writes the "GIT-VERSION-FILE" into
the current directory, where the expectation is that it should exist in
the source directory. But other build systems that support out-of-tree
builds may not want to do that to keep the source directory pristine,
even though CMake currently doesn't care.

Refactor the script such that it won't write the "GIT-VERSION-FILE"
directly anymore, but instead knows to replace @PLACEHOLDERS@ in an
arbitrary input file. This allows us to simplify the logic in CMake to
determine the project version, but can also be reused later on in order
to generate other files that need to contain version information like
our "git.rc" file.

While at it, change the format of the version file by removing the
spaces around the equals sign. Like this we can continue to include the
file in our Makefiles, but can also start to source it in shell scripts
in subsequent steps.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-12-07 07:52:08 +09:00
..
config ci: deprecate ci/config/allow-ref script 2023-08-30 15:56:11 -07:00
util
check-directional-formatting.bash ci: unify bash calling convention 2024-07-08 16:23:05 -07:00
check-whitespace.sh check-whitespace: detect if no base_commit is provided 2024-07-23 09:56:50 -07:00
install-dependencies.sh Merge branch 'ja/doc-synopsis-markup' 2024-10-10 14:22:24 -07:00
install-sdk.ps1 ci: create script to set up Git for Windows SDK 2024-10-09 11:33:04 -07:00
lib.sh test-lib: unconditionally enable leak checking 2024-11-21 08:23:47 +09:00
make-test-artifacts.sh
mount-fileshare.sh
print-test-failures.sh ci: handle TEST_OUTPUT_DIRECTORY when printing test failures 2024-01-18 11:53:17 -08:00
run-build-and-minimal-fuzzers.sh Merge branch 'jc/fuzz-sans-curl' 2024-07-02 09:59:01 -07:00
run-build-and-tests.sh midx: implement support for writing incremental MIDX chains 2024-08-06 12:01:39 -07:00
run-static-analysis.sh
run-style-check.sh ci/style-check: add `RemoveBracesLLVM` in CI job 2024-07-23 09:56:50 -07:00
run-test-slice.sh ci: use test-tool as unit test runner on Windows 2024-05-06 14:06:35 -07:00
test-documentation.sh Makefile: refactor GIT-VERSION-GEN to be reusable 2024-12-07 07:52:08 +09:00