]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: extract script to massage Python scripts
authorPatrick Steinhardt <ps@pks.im>
Fri, 6 Dec 2024 13:24:46 +0000 (14:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2024 22:52:10 +0000 (07:52 +0900)
commitb7835b941bd437aa770ab91d7323ce74d2bd81b7
tree3137ddf8fd050846bf8427ee5b6e9f5a95f9c5de
parenteb98cb835c9faf4d675411b3314b7fc9820ab179
Makefile: extract script to massage Python scripts

Extract a script that massages Python scripts. This provides a couple of
benefits:

  - The build logic is deduplicated across Make, CMake and Meson.

  - CMake learns to rewrite scripts as-needed at build time instead of
    only writing them at configure time.

Furthermore, we will use this script when introducing Meson to
deduplicate the logic across build systems.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
contrib/buildsystems/CMakeLists.txt
generate-python.sh [new file with mode: 0755]