mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 17:19:53 +00:00
trivial: set FWUPD_GIT_DESCRIBE even if git isn't installed
This commit is contained in:
parent
b04c13e1cf
commit
7dabe954e2
@ -17,13 +17,12 @@ conf.set('FWUPD_MICRO_VERSION', fwupd_micro_version)
|
||||
conf.set_quoted('PACKAGE_VERSION', fwupd_version)
|
||||
|
||||
archiver = find_program('git', required : false)
|
||||
conf.set('FWUPD_GIT_DESCRIBE', 0)
|
||||
if archiver.found()
|
||||
result = run_command('git', 'describe')
|
||||
if result.returncode() == 0
|
||||
describe = result.stdout().strip()
|
||||
conf.set_quoted('FWUPD_GIT_DESCRIBE', describe)
|
||||
else
|
||||
conf.set('FWUPD_GIT_DESCRIBE', 0)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user