mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
add option to skip pot update; update sha1 after commit
This commit is contained in:
parent
84c1e7bdd2
commit
64fffd1bfc
1 changed files with 8 additions and 4 deletions
|
@ -7,6 +7,7 @@ import subprocess
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from typing import Optional, Tuple
|
from typing import Optional, Tuple
|
||||||
|
|
||||||
repos_bzl = "repos.bzl"
|
repos_bzl = "repos.bzl"
|
||||||
|
@ -146,13 +147,16 @@ def update_po_templates():
|
||||||
commit_if_changed(module.folder())
|
commit_if_changed(module.folder())
|
||||||
|
|
||||||
|
|
||||||
def push_changes():
|
def push_i18n_changes():
|
||||||
for module in modules:
|
for module in modules:
|
||||||
subprocess.run(["git", "push"], cwd=module.folder(), check=True)
|
subprocess.run(["git", "push"], cwd=module.folder(), check=True)
|
||||||
|
|
||||||
|
|
||||||
update_git_repos()
|
update_git_repos()
|
||||||
update_repos_bzl()
|
|
||||||
update_ftl_templates()
|
update_ftl_templates()
|
||||||
update_po_templates()
|
if len(sys.argv) > 1 and sys.argv[1] == "all":
|
||||||
push_changes()
|
update_po_templates()
|
||||||
|
else:
|
||||||
|
print("skipping po updates")
|
||||||
|
push_i18n_changes()
|
||||||
|
update_repos_bzl()
|
||||||
|
|
Loading…
Reference in a new issue