From a5d1f88c3a74a099030ffbbb30ad3fd361fdd1af Mon Sep 17 00:00:00 2001 From: Thierry LARONDE Date: Thu, 1 Feb 2024 20:42:02 +0100 Subject: Allow to use POSIX.2 compliant sed(1) POSIX.2 sed(1) doesn't allow file to be anywhere else than, if given, last. Allow to use whatever compliant sed(1) is there, not only GNU sed(1). --- man/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man/meson.build b/man/meson.build index 003e9be..4732cbc 100644 --- a/man/meson.build +++ b/man/meson.build @@ -11,12 +11,13 @@ foreach man : ['Xau', 'XauDisposeAuth', 'XauFileName', 'XauGetAuthByAddr', input : f'@man@.man', output : f'@man@.3', command : [ - prog_sed, '@INPUT@', + prog_sed, '-e', 's/__xorgversion__/"libXau @0@" "X Version 11"/'.format(meson.project_version()), '-e', 's/__libmansuffix__/3/', + '@INPUT@', ], capture : true, install : true, install_dir : get_option('prefix') / get_option('mandir') / 'man3', ) -endforeach \ No newline at end of file +endforeach -- cgit v1.2.3