mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 10:54:41 +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)
|
conf.set_quoted('PACKAGE_VERSION', fwupd_version)
|
||||||
|
|
||||||
archiver = find_program('git', required : false)
|
archiver = find_program('git', required : false)
|
||||||
|
conf.set('FWUPD_GIT_DESCRIBE', 0)
|
||||||
if archiver.found()
|
if archiver.found()
|
||||||
result = run_command('git', 'describe')
|
result = run_command('git', 'describe')
|
||||||
if result.returncode() == 0
|
if result.returncode() == 0
|
||||||
describe = result.stdout().strip()
|
describe = result.stdout().strip()
|
||||||
conf.set_quoted('FWUPD_GIT_DESCRIBE', describe)
|
conf.set_quoted('FWUPD_GIT_DESCRIBE', describe)
|
||||||
else
|
|
||||||
conf.set('FWUPD_GIT_DESCRIBE', 0)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user