update quest build project

This commit is contained in:
2019-06-13 12:38:03 +02:00
parent dc9da77cf8
commit ac47915658
3 changed files with 10 additions and 4 deletions

View File

@@ -8,6 +8,10 @@ branch = check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).rstrip().dec
shorthash = check_output(["git", "log", "--pretty=format:%h", "-n 1"]).rstrip().decode("utf-8")
revcount = int(check_output(["git", "rev-list", "--count", "HEAD"]))
tag = check_output(["git", "describe", "--tags", "--abbrev=0"]).rstrip().decode("utf-8").split('-',1)[0]
if len(sys.argv) < 2:
print("pre-build.py failed")
exit(0)
config = sys.argv[1].lower()
version = "%s.%d (%s-%s-%s)" % (tag, revcount, shorthash, branch, config)