meson.build: post-release version bump to 3.0.0-RC1+git.

Intermediate RC versions used to be suffixed "-git" but gi-docgen
doesn't like this (or to be more accurate the packaging.version module
used by gi-docgen considers this an invalid version).

But it allows with a '+' (it calls it the local version segment). So
let's go with this new formatting.
This commit is contained in:
Jehan 2024-11-05 01:15:30 +01:00
parent 76036f4833
commit 01a15f113b

View file

@ -1,6 +1,6 @@
project('gimp',
'c', 'cpp',
version: '3.0.0-RC1',
version: '3.0.0-RC1+git',
meson_version: '>=0.61.0',
default_options: [
'cpp_std=gnu++14',
@ -33,9 +33,13 @@ gimp_app_micro_rc = gimp_app_version_arr[2].split('-')
gimp_app_version_micro = gimp_app_micro_rc[0].to_int()
if gimp_app_micro_rc.length() > 1
if not gimp_app_micro_rc[1].startswith('RC')
error('Version format is: <major>.<minor>.<micro> with optional "-RC<num>" suffix.')
error('Version format is: <major>.<minor>.<micro> with optional "-RC<num>" suffix and optional "+git".')
endif
if gimp_app_micro_rc[1].endswith('+git')
gimp_app_version_rc = gimp_app_micro_rc[1].substring(2, -4).to_int()
else
gimp_app_version_rc = gimp_app_micro_rc[1].substring(2).to_int()
endif
gimp_app_version_rc = gimp_app_micro_rc[1].substring(2).to_int()
endif
# Override for Release-candidates