summaryrefslogtreecommitdiffstats
path: root/tools/meson-render-jinja2.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:42 +0000
commit78e9bb837c258ac0ec7712b3d612cc2f407e731e (patch)
treef515d16b6efd858a9aeb5b0ef5d6f90bf288283d /tools/meson-render-jinja2.py
parentAdding debian version 255.5-1. (diff)
downloadsystemd-78e9bb837c258ac0ec7712b3d612cc2f407e731e.tar.xz
systemd-78e9bb837c258ac0ec7712b3d612cc2f407e731e.zip
Merging upstream version 256.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/meson-render-jinja2.py')
-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 3a3d912..977de79 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()