1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00

Small bug in compile.py script, templates were always YES

This commit is contained in:
bsongis 2012-01-27 08:02:14 +00:00
parent 6d138fe89f
commit 57bdc48e6d

View file

@ -3,16 +3,16 @@
import os, sys, shutil import os, sys, shutil
from subprocess import call from subprocess import call
options_stock = [("frsky", "EXT=FRSKY"), options_stock = [("frsky", "EXT=STD", "EXT=FRSKY"),
("heli", "HELI=YES"), ("heli", "HELI=NO", "HELI=YES"),
("templates", "TEMPLATES=YES"), ("templates", "TEMPLATES=NO", "TEMPLATES=YES"),
("speaker", "BEEPER=SPEAKER"), ("speaker", "BEEPER=BUZZER", "BEEPER=SPEAKER"),
# ("DSM2", "DSM2=PPM"), # ("DSM2", "DSM2="NO", "DSM2=PPM"),
# ("PXX", "PXX=YES"), # ("PXX", "PXX=NO", "PXX=YES"),
] ]
options_v4 = [("heli", "HELI=YES"), options_v4 = [("heli", "HELI=NO", "HELI=YES"),
("templates", "TEMPLATES=YES"), ("templates", "TEMPLATES=NO", "TEMPLATES=YES"),
] ]
languages = ["en", "fr"] languages = ["en", "fr"]
@ -30,6 +30,8 @@ def generate(hex, arg, options):
for i, option in enumerate(options): for i, option in enumerate(options):
if states[len(options) - 1 - i]: if states[len(options) - 1 - i]:
hex_file += "-" + option[0] hex_file += "-" + option[0]
make_args.append(option[2])
else:
make_args.append(option[1]) make_args.append(option[1])
hex_file += "-" + language hex_file += "-" + language
make_args.append("TRANSLATIONS=" + language.upper()) make_args.append("TRANSLATIONS=" + language.upper())