Skip to content

Commit 02fa218

Browse files
keszybzyuwata
authored andcommitted
meson: use jinja2 for README
1 parent 997f52a commit 02fa218

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/sysvinit/README.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
You are looking for the traditional init scripts in @SYSTEM_SYSVINIT_PATH@,
1+
You are looking for the traditional init scripts in {{ SYSTEM_SYSVINIT_PATH }},
22
and they are gone?
33

44
Here's an explanation on what's going on:
@@ -15,7 +15,7 @@ service, respectively. For further details, please refer to
1515
systemctl(1).
1616

1717
Note that traditional init scripts continue to function on a systemd
18-
system. An init script @SYSTEM_SYSVINIT_PATH@/foobar is implicitly mapped
18+
system. An init script {{ SYSTEM_SYSVINIT_PATH }}/foobar is implicitly mapped
1919
into a service unit foobar.service during system initialization.
2020

2121
Thank you!

docs/sysvinit/meson.build

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# SPDX-License-Identifier: LGPL-2.1-or-later
22

3-
file = configure_file(
3+
custom_target(
4+
'README',
45
input : 'README.in',
56
output : 'README',
6-
configuration : substs)
7-
8-
if conf.get('HAVE_SYSV_COMPAT') == 1
9-
install_data(file,
10-
install_dir : sysvinit_path)
11-
endif
7+
command : [meson_render_jinja2, config_h, '@INPUT@'],
8+
capture : true,
9+
install : conf.get('HAVE_SYSV_COMPAT') == 1,
10+
install_dir : sysvinit_path)

0 commit comments

Comments
 (0)