got most of the WebUI updated and working
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import subprocess
|
||||
|
||||
revision = (
|
||||
subprocess.check_output(["git", "rev-parse", "--short=10", "HEAD"])
|
||||
.strip()
|
||||
.decode("utf-8")
|
||||
)
|
||||
print("-DGIT_REV='\"%s\"'" % revision)
|
@@ -3,6 +3,12 @@ env.Execute("\"$PYTHONEXE\" -m pip install jinja2")
|
||||
|
||||
import struct2json
|
||||
import dtcs
|
||||
from os import popen
|
||||
|
||||
git_revision = popen('git rev-parse --short HEAD').read().strip()
|
||||
|
||||
env.Replace(PROGNAME="firmware_%s.fw" % git_revision)
|
||||
env.Append(CPPDEFINES=[('GIT_REV', '\\"{}\\"'.format(git_revision))])
|
||||
|
||||
struct2json.struct2json()
|
||||
dtcs.build_dtcs()
|
Reference in New Issue
Block a user