summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-01-05 01:01:54 +0000
committerOndrej Holy <oholy@redhat.com>2021-01-05 07:07:57 +0000
commit44c1b9f3b5d3a2b4c0a19adbe4e7a9601d08a18f (patch)
tree0ccba8cce165b82b969b5cb2d382f9ffb09d5806
parent787a835f01f78ce047af669553ecd83f38631682 (diff)
downloadnautilus-940-maybe-don-t-show-stable-in-about-dialog.tar.gz
meson.build: Don't suffix VERSION with '-stable'940-maybe-don-t-show-stable-in-about-dialog
It is visible in the about dialog and may be wrong. Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/940
-rw-r--r--meson.build12
1 files changed, 10 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 6abf6325a..8cc68e7e8 100644
--- a/meson.build
+++ b/meson.build
@@ -149,6 +149,14 @@ endif
application_id = 'org.gnome.Nautilus' + profile
+if profile == ''
+ # Example: 40.0
+ version_string = meson.project_version()
+else
+ # Examples: 40.alpha-787a835f
+ version_string = '@0@-@VCS_TAG@'.format(meson.project_version())
+endif
+
conf.set_quoted('APPLICATION_ID', application_id)
conf.set_quoted('GETTEXT_PACKAGE', 'nautilus')
conf.set_quoted('LOCALEDIR', join_paths(prefix, localedir))
@@ -157,7 +165,7 @@ conf.set_quoted('NAUTILUS_DATADIR', join_paths(prefix, datadir, 'nautilus'))
conf.set_quoted('NAUTILUS_EXTENSIONDIR', join_paths(prefix, extensiondir))
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('PROFILE', profile)
-conf.set_quoted('VERSION', '@0@-@VCS_TAG@'.format(meson.project_version()))
+conf.set_quoted('VERSION', version_string)
conf.set('ENABLE_PACKAGEKIT', get_option('packagekit'))
conf.set('ENABLE_PROFILING', get_option('profiling'))
@@ -171,7 +179,7 @@ conf.set('HAVE_SELINUX', get_option('selinux'))
config_h = declare_dependency(
sources: vcs_tag(
command: ['git', 'rev-parse', '--short', 'HEAD'],
- fallback: profile != ''? 'devel' : 'stable',
+ fallback: profile != '' ? 'devel' : '',
input: configure_file(
output: 'config.h.in',
configuration: conf