build: Assert extension-tool version is bumped alongside gnome-shell

I always forget to keep the extension-tool version number in sync when
doing a new release. Given that it's unlikely that I'll do much better
in the future by myself, make distcheck fail when the versions don't
match.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1076
This commit is contained in:
Florian Müllner 2020-03-08 01:57:34 +01:00 committed by Georges Basile Stavracas Neto
parent bea3987f3e
commit dc002a61eb
2 changed files with 7 additions and 1 deletions

View File

@ -244,12 +244,17 @@ libgvc = subproject('gvc',
libgvc_gir = libgvc.get_variable('libgvc_gir')
if get_option('extensions_tool')
subproject('extensions-tool',
extension_tool = subproject('extensions-tool',
default_options: [
'man=@0@'.format(get_option('man')),
'package_name=@0@'.format(meson.project_name()),
]
)
extension_tool_version = extension_tool.get_variable('package_version')
assert(extension_tool_version == meson.project_version(),
'extension-tool version does not match project version'
)
endif

View File

@ -10,6 +10,7 @@ gnome = import('gnome')
i18n = import('i18n')
package_name = get_option('package_name')
package_version = meson.project_version()
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))