build: Replace join_paths with the / operator

Since Meson 0.49.0, the / operator on strings is equivalent to calling
join_paths() [1], and the former is less verbose, and easier to read.

[1] https://mesonbuild.com/Reference-manual_functions.html#join_paths

https://github.com/containers/toolbox/pull/1141
This commit is contained in:
Debarshi Ray 2022-10-21 16:50:31 +02:00
parent fce8a3c058
commit 8b2d25f1e8
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
install_data( install_data(
'toolbox.conf', 'toolbox.conf',
install_dir: join_paths(get_option('sysconfdir'), 'containers'), install_dir: get_option('sysconfdir') / 'containers',
) )

View file

@ -32,7 +32,7 @@ foreach section, pages: manuals
command: go_md2man_command, command: go_md2man_command,
input: input, input: input,
install: true, install: true,
install_dir: join_paths(get_option('mandir'), sectiondir), install_dir: get_option('mandir') / sectiondir,
output: output, output: output,
) )
endforeach endforeach

View file

@ -63,7 +63,7 @@ endif
install_subdir( install_subdir(
'test', 'test',
install_dir: join_paths(get_option('datadir'), meson.project_name()), install_dir: get_option('datadir') / meson.project_name(),
exclude_files: [ exclude_files: [
'system/libs/bats-assert/.git', 'system/libs/bats-assert/.git',
'system/libs/bats-assert/.gitignore', 'system/libs/bats-assert/.gitignore',