build: preserve correct mode when generating files via jinja2
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Nov 2021 13:29:53 +0000 (14:29 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 8 Nov 2021 12:06:48 +0000 (12:06 +0000)
commita6d1760024d0884efb343e1c739f303619f7c8b9
treec8dbba36a1918327990537b23aefe1b54941fd12
parentbf47f71c1cd36c2b0eb5aeac4d8bdf58c67f2b33
build: preserve correct mode when generating files via jinja2

When using "capture : true" in custom_target()s the mode of the source
file is not preserved when the generated file is not installed and so
needs to be tweaked manually. Switch from output capture to creating the
target file and copy the permissions from the input file.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
20 files changed:
docs/sysvinit/meson.build
man/meson.build
rules.d/meson.build
shell-completion/bash/meson.build
shell-completion/zsh/meson.build
src/core/meson.build
src/journal-remote/meson.build
src/libsystemd/meson.build
src/libudev/meson.build
src/login/meson.build
src/resolve/meson.build
src/rpm/meson.build
src/timesync/meson.build
src/udev/meson.build
src/vconsole/meson.build
sysctl.d/meson.build
sysusers.d/meson.build
tmpfiles.d/meson.build
tools/meson-render-jinja2.py
units/meson.build