Skip to content

Commit

Permalink
meson: remove git revision
Browse files Browse the repository at this point in the history
Not really needed and did not properly sort in the extensions app.
  • Loading branch information
gicmo committed Jun 8, 2021
1 parent 443a02a commit 3bae4b2
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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))

0 comments on commit 3bae4b2

Please sign in to comment.