From 101ddccc4fad47ac8bef08ff3e30cc81727f477b Mon Sep 17 00:00:00 2001 From: Mathias Krause Date: Tue, 30 Jul 2024 23:30:25 +0200 Subject: meson: avoid using replace() to not unnecessarily bump meson >= 0.58.0 Debian bullseye ships with meson 0.56.2 which is too old to understand replace(). Work around that with split() and string concatenation. Signed-off-by: Mathias Krause Closes: https://github.com/gentoo/pax-utils/pull/16 Signed-off-by: Sam James --- man/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man') diff --git a/man/meson.build b/man/meson.build index 09ac0d5..c6982d2 100644 --- a/man/meson.build +++ b/man/meson.build @@ -19,7 +19,7 @@ fs = import('fs') out_pages = [] generated_man_pages_exist = true foreach page : pages - man_page_name = page.replace('.docbook', '.1') + man_page_name = page.split('.')[0] + '.1' out_pages += man_page_name if not fs.exists(man_page_name) generated_man_pages_exist = false -- cgit v1.2.3-65-gdbad