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

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

parent 68b589f8
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Please to comment