summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2021-03-01 15:28:58 -0600
committerJeff Epler <jepler@gmail.com>2021-03-01 15:28:58 -0600
commitbddd6b013d0316157f71ffcecd22173a4e2d8b5c (patch)
tree17bdaedaf0d5482ca9c2d7098a1b20da7e05f293 /tools
parent21a8752166b1d3499cceb087393161a22a4e44c4 (diff)
build_release_files: Only build languages in an allow-list
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build_release_files.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/build_release_files.py b/tools/build_release_files.py
index 98e81499e..dc6c094c0 100755
--- a/tools/build_release_files.py
+++ b/tools/build_release_files.py
@@ -27,6 +27,9 @@ if "BOARDS" in os.environ:
sha, version = build_info.get_version_info()
languages = build_info.get_languages()
+language_allow_list = ['ID', 'de_DE', 'en_US', 'en_x_pirate', 'es', 'fil', 'fr', 'it_IT', 'ja', 'nl', 'pl', 'pt_BR', 'sv', 'zh_Latn_pinyin']
+print('Note: Not building languages', set(languages) - set(language_allow_list))
+
exit_status = 0
cores = multiprocessing.cpu_count()
print('building boards with parallelism {}'.format(cores))
@@ -35,7 +38,7 @@ for board in build_boards:
os.makedirs(bin_directory, exist_ok=True)
board_info = all_boards[board]
- for language in languages:
+ for language in language_allow_list:
bin_directory = "../bin/{board}/{language}".format(board=board, language=language)
os.makedirs(bin_directory, exist_ok=True)
start_time = time.monotonic()