systemd/tools
Zbigniew Jędrzejewski-Szmek 6b1aac3ccf meson: replace some m4 templates with jinja2
m4 was nice in '85, but the syntax feels a bit dated. Since we use python for
meson, let's use a popular python templating engine to replace some m4 usage.

A little nicety is that typos are caught:

FAILED: sysusers.d/systemd-remote.conf
/usr/bin/meson --internal exe --capture sysusers.d/systemd-remote.conf -- /home/zbyszek/src/systemd/tools/meson-render-jinja2.py config.h ../sysusers.d/systemd-remote.conf.j2
Traceback (most recent call last):
  File "/home/zbyszek/src/systemd/tools/meson-render-jinja2.py", line 28, in <module>
    print(render(sys.argv[2], defines))
  File "/home/zbyszek/src/systemd/tools/meson-render-jinja2.py", line 24, in render
    return template.render(defines)
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/usr/lib/python3.9/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 8, in top-level template code
jinja2.exceptions.UndefinedError: 'HAVE_MICROHTTP' is undefined

This checking mirrors what 349cc4a507 did for C defines.
2021-05-19 10:24:43 +09:00
..
chromiumos hwdb: update for v248 2021-03-08 14:27:48 +01:00
add-git-hook.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
build-bpf-skel.py bpf: add build script for bpf programs 2021-04-26 16:07:41 -07:00
catalog-report.py tree-wide: drop header for emacs from python scripts 2018-12-10 03:17:33 +09:00
check-api-docs.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
check-compilation.sh tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
check-directives.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
check-help.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
check-includes.pl Drop "Copyright abandonded" header 2018-07-24 11:14:44 +02:00
choose-default-locale.sh tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
coverity.sh tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
find-build-dir.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
find-double-newline.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
find-tabs.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
gdb-sd_dump_hashmaps.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
generate-gperfs.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
get-coverity.sh tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
git-contrib.sh git-contrib: use non-breaking spaces in names 2021-03-30 13:17:59 +02:00
make-autosuspend-rules.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
make-directive-index.py Revert "tools/make-directive-index: parallelize" 2021-05-14 23:16:24 +01:00
make-man-index.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
meson-apply-m4.sh fix bash shebangs 2021-05-17 22:27:41 +01:00
meson-build.sh tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
meson-make-symlink.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
meson-render-jinja2.py meson: replace some m4 templates with jinja2 2021-05-19 10:24:43 +09:00
meson-vcs-tag.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
oss-fuzz.sh oss-fuzz: show meson logs 2021-02-01 22:51:43 +09:00
update-dbus-docs.py update-dbus-docs: use color in summary 2021-02-06 11:41:42 +01:00
update-hwdb-autosuspend.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
update-hwdb.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
update-man-rules.py meson: rename target to update-man-rules 2021-01-27 09:10:25 +01:00
update-syscall-tables.sh tools: shellcheck-ify most of the tool scripts 2021-04-20 20:11:13 +02:00
xml_helper.py license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00