Added git rev to build info

This commit is contained in:
Magnus Persson
2022-03-21 21:42:44 +01:00
parent dab4d0ed22
commit 07fefe41fb
3 changed files with 11 additions and 2 deletions

8
script/git_rev.py Normal file
View File

@ -0,0 +1,8 @@
import subprocess
revision = (
subprocess.check_output(["git", "rev-parse", "HEAD"])
.strip()
.decode("utf-8")
)
print("-D CFG_GITREV='\"%s\"'" % revision)