From 3bae4b2f8f487a21c831709673a32c7efaaaead3 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 8 Jun 2021 22:42:37 +0200 Subject: [PATCH] meson: remove git revision Not really needed and did not properly sort in the extensions app. --- meson.build | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/meson.build b/meson.build index 48baafd..5a82f28 100644 --- a/meson.build +++ b/meson.build @@ -27,24 +27,10 @@ installdir = join_paths(extensiondir, uuid) js68 = find_program('js68', required: false) git = find_program('git', required: false) -# optional git revision suffix -gitrev = '' -if git.found() - gitres = run_command(git, ['--git-dir=@0@/.git'.format(srcdir), - 'rev-parse', - '--short=7', - 'HEAD']) - if gitres.returncode() == 0 - gitrev = gitres.stdout().strip() - endif -endif - -full_version = meson.project_version() + '-' + gitrev - # metdata.json configuration data conf = configuration_data() conf.set('UUID', uuid) -conf.set('VERSION', full_version) +conf.set('VERSION', meson.project_version()) conf.set('GETTEXT_DOMAIN', gettext_domain) conf.set('URL', url) @@ -92,8 +78,6 @@ run_target('fix-translations', # all done. report. msg = ['', 'version: @0@'.format(meson.project_version()), - 'git-rev: @0@'.format(gitrev), - 'full-version: @0@'.format(full_version), '' ] message('\n '.join(msg))