Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: adblockbrowser-cfg.py

Issue 29399743: Issue 3768 - Check (and fix, if needed) multilocale builds (Closed)
Patch Set: Created March 31, 2017, 9:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build.py » ('j') | build.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os 1 import os
2 # The name of the directory we'll pull our source into. 2 # The name of the directory we'll pull our source into.
3 BUILD_DIR = "adblockbrowser" 3 BUILD_DIR = "adblockbrowser"
4 # This is everything that comes after https://hg.mozilla.org/ 4 # This is everything that comes after https://hg.mozilla.org/
5 # e.g. "releases/mozilla-aurora" 5 # e.g. "releases/mozilla-aurora"
6 REPO_PATH = "mozilla-central" 6 REPO_PATH = "mozilla-central"
7 # This is where the l10n repos are (everything after https://hg.mozilla.org/) 7 # This is where the l10n repos are (everything after https://hg.mozilla.org/)
8 # for mozilla-central, that's "l10n-central". 8 # for mozilla-central, that's "l10n-central".
9 # For mozilla-aurora, that's "releases/l10n/mozilla-aurora" 9 # For mozilla-aurora, that's "releases/l10n/mozilla-aurora"
10 L10N_REPO_PATH = "releases/l10n/mozilla-release" 10 L10N_REPO_PATH = "releases/l10n/mozilla-release"
11 # Currently this is assumed to be a subdirectory of your build dir 11 # Currently this is assumed to be a subdirectory of your build dir
12 if not "OBJDIR" in os.environ: 12 if not "OBJDIR" in os.environ:
13 raise "No objdir specified - please set OBJDIR" 13 raise "No objdir specified - please set OBJDIR"
14 OBJDIR = os.environ.get("OBJDIR") 14 OBJDIR = os.environ.get("OBJDIR")
15 # Set this to mobile/xul for XUL Fennec 15 # Set this to mobile/xul for XUL Fennec
16 ANDROID_DIR = "mobile/android" 16 ANDROID_DIR = "mobile/android"
17 # Absolute path to your mozconfig. 17 # Absolute path to your mozconfig.
18 # By default it looks at "./mozconfig" 18 # By default it looks at "./mozconfig"
19 if not "MOZCONFIG" in os.environ: 19 if not "MOZCONFIG" in os.environ:
20 raise "No mozconfig specified - please set MOZCONFIG" 20 raise "No mozconfig specified - please set MOZCONFIG"
21 MOZCONFIG = os.environ.get("MOZCONFIG") 21 MOZCONFIG = os.environ.get("MOZCONFIG")
22 22
23 config = { 23 config = {
24 "work_dir": ".", 24 "work_dir": ".",
25 "log_name": "multilocale", 25 "log_name": "multilocale",
26 "objdir": OBJDIR, 26 "objdir": OBJDIR,
27 "locales_file": "%s/%s/locales/maemo-locales" % (BUILD_DIR, ANDROID_DIR), 27 "locales_file": "%s/%s/locales/maemo-locales" % (BUILD_DIR, ANDROID_DIR),
28 "locales_dir": "%s/locales" % ANDROID_DIR, 28 "locales_dir": "%s/locales" % ANDROID_DIR,
29 "ignore_locales": ["en-US", "multi"], 29 "ignore_locales": ["en-US", "en-ZA", "multi"],
anton 2017/04/03 06:28:11 why "en-ZA" is ignored?
diegocarloslima 2017/04/03 09:57:09 en-ZA is missing the FENNEC_44_0_2_RELEASE tag, so
30 "l10n_repos": [{ 30 "l10n_repos": [{
31 "repo": "https://hg.mozilla.org/build/compare-locales", 31 "repo": "https://hg.mozilla.org/build/compare-locales",
32 "tag": "RELEASE_AUTOMATION" 32 "tag": "RELEASE_AUTOMATION"
33 }], 33 }],
34 "hg_l10n_base": "https://hg.mozilla.org/%s" % L10N_REPO_PATH, 34 "hg_l10n_base": "https://hg.mozilla.org/%s" % L10N_REPO_PATH,
35 "hg_l10n_tag": "FENNEC_40_0_RELEASE", 35 "hg_l10n_tag": "FENNEC_44_0_2_RELEASE",
36 "l10n_dir": "l10n", 36 "l10n_dir": "l10n",
37 "merge_locales": True, 37 "merge_locales": True,
38 "mozilla_dir": BUILD_DIR, 38 "mozilla_dir": BUILD_DIR,
39 "mozconfig": MOZCONFIG, 39 "mozconfig": MOZCONFIG,
40 "default_actions": [ 40 "default_actions": [
41 "pull-locale-source", 41 "pull-locale-source",
42 "build", 42 "build",
43 "add-locales", 43 "add-locales",
44 "abb-transform-locales", 44 "abb-transform-locales",
45 "package-multi", 45 "package-multi",
46 "summary", 46 "summary",
47 ], 47 ],
48 } 48 }
OLDNEW
« no previous file with comments | « no previous file | build.py » ('j') | build.py » ('J')

Powered by Google App Engine
This is Rietveld