Skip to content
Permalink
Browse files
Make sed invocation more portable
FreeBSD and MacOS variants of `sed` do not accept `-i` parameter without any argument.
  • Loading branch information
arrowd authored and ximion committed Feb 20, 2023
1 parent 921c741 commit 03e0231
Showing 1 changed file with 1 addition and 1 deletion.
@@ -129,7 +129,7 @@ appstream_compose_dep = declare_dependency(
# builds using libappstream. Fix this issue by post-processing the file.
sed_prog = find_program('sed')
pc_fixup = run_command(sed_prog,
'-i',
'-i.bak',
'/^Requires.private\|^Libs.private/ d',
join_paths(meson.project_build_root(), 'meson-private', 'appstream-compose.pc'),
check: false)

0 comments on commit 03e0231

Please sign in to comment.