From dc307e1cbf73f6dbf72bb049c19d332774cdb4e7 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 5 May 2022 00:16:15 -0400 Subject: [PATCH] meson: fix error in processing version for pc files This awk command was copied verbatim from configure.ac, which included non-awk syntax because configure.ac cannot contain [ literals. Rewrite these autoconf quadrigraphs as their actual values, for meson. Fixes always setting the micro version to "0". --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/meson.build +++ b/meson.build @@ -41,7 +41,7 @@ conf.set_quoted('PACKAGE_VERSION', meson codes = [''' {print $1} ''', ''' {sub("-.*","",$2); print $2} ''', - ''' {sub("-.*","",$3); print $3 ~ /^@<:@0-9@:>@+$/ ? $3 : 0} '''] + ''' {sub("-.*","",$3); print $3 ~ /^[0-9]+$/ ? $3 : 0} '''] pc_version = [] foreach code : codes res = run_command('bash', '-c',