Skip to content
Snippets Groups Projects
Unverified Commit eda7d2c8 authored by boklm's avatar boklm
Browse files

Bug 40735: Add command to list which translation components need to be updated

parent 49af2a8d
No related branches found
No related tags found
1 merge request!622Bug 40735: Add command to list which translation components need to be updated
......@@ -121,7 +121,7 @@ Tor Browser Alpha (and Nightly) are on the `main` branch, while Stable lives in
- [ ] `git_hash` : update the `$(BUILD_N)` section to match `tor-browser` tag
- [ ] ***(Optional)*** `var/firefox_platform_version` : update to latest `$(ESR_VERSION)` if rebased
- [ ] Update `projects/translation/config`:
- [ ] run `tools/get-translation-hashes` to get updated hashes
- [ ] run `make list_translation_updates-alpha` to get updated hashes
- [ ] `steps/base-browser/git_hash` : update with `HEAD` commit of project's `base-browser` branch
- [ ] `steps/base-browser-fluent/git_hash` : update with `HEAD` commit of project's `basebrowser-newidentityftl` branch
- [ ] `steps/tor-browser/git_hash` : update with `HEAD` commit of project's `tor-browser` branch
......
......@@ -223,6 +223,12 @@ dmg2mar-alpha: submodule-update
tools/update-responses/download_missing_versions alpha
CHECK_CODESIGNATURE_EXISTS=1 MAR_SKIP_EXISTING=1 tools/update-responses/gen_incrementals alpha
list_translation_updates-release:
$(rbm) showconf --target release --step list_updates translation list_updates
list_translation_updates-alpha:
$(rbm) showconf --target alpha --step list_updates translation list_updates
list_toolchain_updates-fenix: submodule-update
$(rbm) build fenix --step list_toolchain_updates --target nightly --target torbrowser-android-armv7
......
......@@ -30,3 +30,17 @@ steps:
targets:
nightly:
git_hash: 'fenix-torbrowserstringsxml'
list_updates:
list_updates: |
[%
FOREACH component = [ 'base-browser', 'base-browser-fluent', 'tor-browser', 'fenix' ];
branch = pc(project, 'git_hash', { step => component, target => [ 'nightly' ] });
commit_hash = exec('git rev-parse ' _ branch, { git_hash => branch });
IF commit_hash == pc(project, "git_hash", { step => component });
GET '* ' _ component _ " is up to date\n";
ELSE;
GET '* ' _ component _ ' can be updated: ' _ commit_hash _ "\n";
END;
END;
-%]
fetch: 1
#!/bin/bash
cd "$(dirname "$0")/../git_clones/translation"
git fetch > /dev/null 2>&1
echo -n "base-browser: "
git rev-parse origin/base-browser
echo -n "base-browser-fluent: "
git rev-parse origin/basebrowser-newidentityftl
echo -n "tor-browser: "
git rev-parse origin/tor-browser
echo -n "fenix: "
git rev-parse origin/fenix-torbrowserstringsxml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment