boklm pushed to branch maint-12.0 at The Tor Project / Applications / tor-browser-build
Commits: fe869201 by Nicolas Vigier at 2023-01-12T13:00:48+01:00 Bug 40735: Add command to list which translation components need to be updated
- - - - -
3 changed files:
- Makefile - projects/translation/config - − tools/get-translation-hashes
Changes:
===================================== Makefile ===================================== @@ -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
===================================== projects/translation/config ===================================== @@ -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
===================================== tools/get-translation-hashes deleted ===================================== @@ -1,13 +0,0 @@ -#!/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
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/fe...