mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Compile script updated
This commit is contained in:
parent
e7c03fa587
commit
5c675a8e0b
1 changed files with 4 additions and 2 deletions
|
@ -102,11 +102,11 @@ def generate(hex, arg, extension, options, languages, maxsize):
|
|||
cwd = "."
|
||||
subprocess.Popen(["make", "clean", arg], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd).wait()
|
||||
p = subprocess.Popen(make_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
|
||||
p.wait()
|
||||
ret = p.wait()
|
||||
stderr = p.stderr.read()
|
||||
global_current += 1
|
||||
print "[%d/%d]" % (global_current, global_count), hex_file
|
||||
if "error" in stderr:
|
||||
if ret or "error" in stderr:
|
||||
print stderr
|
||||
exit()
|
||||
for line in stderr.split("\n"):
|
||||
|
@ -191,6 +191,8 @@ if __name__ == "__main__":
|
|||
ftp_password = getpass.getpass()
|
||||
|
||||
if mt:
|
||||
shutil.rmtree("util", True)
|
||||
shutil.copytree("../util", "util")
|
||||
for lang in languages:
|
||||
print "Directory %s creation..." % lang
|
||||
shutil.rmtree(lang, True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue