File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,21 +20,7 @@ gi_docgen = find_program('gi-docgen')
2020
2121gi_docgen_toml_conf = configuration_data ()
2222gi_docgen_toml_conf.set(' SOURCE_REFERENCE' , source_reference)
23- # We can't use "version.replace('-SNAPSHOT', '.dev')" here because
24- # Ubuntu 20.04's Meson is < 0.58.0.
25- # Is the above comment still relevant?
26- if version_tag == ''
27- gi_docgen_version_tag = ''
28- else
29- # GI-DocGen doesn't like MAJOR.MINOR.PATCH-SNAPSHOT format.
30- gi_docgen_version_tag = ' .dev'
31- endif
32- gi_docgen_version = ' @0@.@1@.@2@@3@' .format(
33- version_major,
34- version_minor,
35- version_micro,
36- gi_docgen_version_tag,
37- )
23+ gi_docgen_version = version.replace(' -SNAPSHOT' , ' .dev' )
3824gi_docgen_toml_conf.set(' VERSION' , gi_docgen_version)
3925
4026gir_top_build_dir = meson .current_build_dir() / ' ..'
You can’t perform that action at this time.
0 commit comments