From: Eli Schwartz Date: Thu, 5 May 2022 04:16:15 +0000 (-0400) Subject: meson: fix error in processing version for pc files X-Git-Tag: v2.39-rc1~668^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc307e1cbf73f6dbf72bb049c19d332774cdb4e7;p=thirdparty%2Futil-linux.git 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". --- diff --git a/meson.build b/meson.build index 39f12245e0..c374c19a38 100644 --- a/meson.build +++ b/meson.build @@ -42,7 +42,7 @@ conf.set_quoted('PACKAGE_VERSION', meson.project_version()) 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',