]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use jinja2 for README
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 16 May 2021 13:05:10 +0000 (15:05 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 May 2021 01:24:43 +0000 (10:24 +0900)
docs/sysvinit/README.in
docs/sysvinit/meson.build

index de5d80d9021e9b5054bdd413aa81e251ee4a5fae..32e21a84c9d2c059c4226769c4079f4cec3eec74 100644 (file)
@@ -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!
index 261bd68ca39a764e18b3c777571767cd49e7a943..0a1935388abae0415a5c433cbd401911ba37d603 100644 (file)
@@ -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)