summaryrefslogtreecommitdiffstats
path: root/docs/sysvinit
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-16 15:05:10 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-19 03:24:43 +0200
commit02fa218b24304b14a4df82974a730ca341d188fc (patch)
tree77623aa467920d3c24c9a25656ebdf38ece88037 /docs/sysvinit
parentmeson: use jinja2 for the gperf template (diff)
downloadsystemd-02fa218b24304b14a4df82974a730ca341d188fc.tar.xz
systemd-02fa218b24304b14a4df82974a730ca341d188fc.zip
meson: use jinja2 for README
Diffstat (limited to 'docs/sysvinit')
-rw-r--r--docs/sysvinit/README.in4
-rw-r--r--docs/sysvinit/meson.build13
2 files changed, 8 insertions, 9 deletions
diff --git a/docs/sysvinit/README.in b/docs/sysvinit/README.in
index de5d80d902..32e21a84c9 100644
--- a/docs/sysvinit/README.in
+++ b/docs/sysvinit/README.in
@@ -1,4 +1,4 @@
-You are looking for the traditional init scripts in @SYSTEM_SYSVINIT_PATH@,
+You are looking for the traditional init scripts in {{ SYSTEM_SYSVINIT_PATH }},
and they are gone?
Here's an explanation on what's going on:
@@ -15,7 +15,7 @@ service, respectively. For further details, please refer to
systemctl(1).
Note that traditional init scripts continue to function on a systemd
-system. An init script @SYSTEM_SYSVINIT_PATH@/foobar is implicitly mapped
+system. An init script {{ SYSTEM_SYSVINIT_PATH }}/foobar is implicitly mapped
into a service unit foobar.service during system initialization.
Thank you!
diff --git a/docs/sysvinit/meson.build b/docs/sysvinit/meson.build
index 261bd68ca3..0a1935388a 100644
--- a/docs/sysvinit/meson.build
+++ b/docs/sysvinit/meson.build
@@ -1,11 +1,10 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
-file = configure_file(
+custom_target(
+ 'README',
input : 'README.in',
output : 'README',
- configuration : substs)
-
-if conf.get('HAVE_SYSV_COMPAT') == 1
- install_data(file,
- install_dir : sysvinit_path)
-endif
+ command : [meson_render_jinja2, config_h, '@INPUT@'],
+ capture : true,
+ install : conf.get('HAVE_SYSV_COMPAT') == 1,
+ install_dir : sysvinit_path)