summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-03-06 15:16:52 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-03-06 15:16:52 +0100
commit5c25f9dbc571fae0cddb8a5970e39c65d93943c7 (patch)
treec32f3ad5557b95620a0bfcc7a7e1d43d9d04353a /tools
parentUse VERSION_TAG instead of GIT_VERSION in kernel-install scripts (diff)
downloadsystemd-5c25f9dbc571fae0cddb8a5970e39c65d93943c7.tar.xz
systemd-5c25f9dbc571fae0cddb8a5970e39c65d93943c7.zip
meson: Remove version_h dependency from jinja2_cmdline
version_h includes GIT_VERSION which only makes sense for C files which aren't preprocessed by jinja2 so remove the argument. The end result of this change is that the man pages are not recompiled anymore every time GIT_VERSION changes.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/meson-render-jinja2.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/meson-render-jinja2.py b/tools/meson-render-jinja2.py
index 3a3d912d8f..977de79378 100755
--- a/tools/meson-render-jinja2.py
+++ b/tools/meson-render-jinja2.py
@@ -33,12 +33,11 @@ def render(filename, defines):
def main():
defines = parse_config_h(sys.argv[1])
- defines.update(parse_config_h(sys.argv[2]))
- output = render(sys.argv[3], defines)
- with open(sys.argv[4], 'w') as f:
+ output = render(sys.argv[2], defines)
+ with open(sys.argv[3], 'w') as f:
f.write(output)
- info = os.stat(sys.argv[3])
- os.chmod(sys.argv[4], info.st_mode)
+ info = os.stat(sys.argv[2])
+ os.chmod(sys.argv[3], info.st_mode)
if __name__ == '__main__':
main()