Looking at
aecb6eaed7d39d73f296c86a882c644b18b7e634, it seems that we
want build paths with spaces to be supported. Let's use 'printf %q' here
to make that work. Also, use capture:true to make the command less complicated.
runtest_env = custom_target(
'systemd-runtest.env',
output : 'systemd-runtest.env',
- command : [sh, '-c',
- '{ echo SYSTEMD_TEST_DATA=@0@; echo SYSTEMD_CATALOG_DIR=@1@; } >@OUTPUT@'.format(
- meson.project_source_root() / 'test',
- meson.project_build_root() / 'catalog')],
+ command : ['printf',
+ 'SYSTEMD_TEST_DATA=%q\nSYSTEMD_CATALOG_DIR=%q\n',
+ meson.project_source_root() / 'test',
+ meson.project_build_root() / 'catalog'],
+ capture: true,
depends : catalogs,
build_by_default : true)