Fix desktop file regeneration with certain AWKs

This commit is contained in:
Přemysl Eric Janouch 2022-01-07 06:46:35 +01:00
parent 8fdf9e2bc3
commit 6869816cc4
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ if gdkpixbuf.found()
dependencies : [dependencies, gdkpixbuf])
endif
# XXX: With gdk-pixbuf, this even dependens on currently installed modules.
# XXX: With gdk-pixbuf, this even depends on currently installed modules.
if meson.is_cross_build()
install_data('fiv.desktop',
install_dir : get_option('datadir') + '/applications')
@ -93,7 +93,7 @@ else
output : 'fiv.desktop',
input : 'fiv.desktop',
command : ['sh', '-c', '''awk '/^MimeType=/ { $0 = "MimeType=";
while ((exe " --list-supported-media-types" | getline type) > 0)
while (((exe " --list-supported-media-types") | getline type) > 0)
$0 = $0 type ";" } 1' "exe=$1" "$2"''', 'sh', exe, '@INPUT@'],
capture : true,
install : true,