From 050b9c56c6e06d8ef7bf905112b9beca10aa5a9d Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 25 Oct 2024 14:35:13 +0900 Subject: [PATCH] Detect patchset version automatically with Meson too It's the same approach done in configure.ac. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 17f10b9851a..4158f96ad41 100644 --- a/meson.build +++ b/meson.build @@ -153,7 +153,8 @@ cdata.set('PG_VERSION_NUM', pg_version_num) # PG_VERSION_STR is built later, it depends on compiler test results cdata.set_quoted('CONFIGURE_ARGS', '') -orioledb_patchset_version = '22' +git_describe_tags = run_command('git', 'describe', '--tags', check: true) +orioledb_patchset_version = git_describe_tags.stdout().strip().split('_')[1] ###############################################################