Skip to content

Commit

Permalink
meson: avoid using replace() to not unnecessarily bump meson >= 0.58.0
Browse files Browse the repository at this point in the history
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 <minipli@grsecurity.net>
Closes: #16
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
minipli-oss authored and thesamesam committed Aug 9, 2024
1 parent f87e480 commit 101ddcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion man/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 101ddcc

Please sign in to comment.