[tbb-commits] [Git][tpo/applications/tor-browser-build][maint-12.0] Bug 40735: Add command to list which translation components need to be updated
boklm (@boklm)
git at gitlab.torproject.org
Thu Jan 12 12:12:52 UTC 2023
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/fe8692010f9e94694a18bf736984439c60d7e29b
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/fe8692010f9e94694a18bf736984439c60d7e29b
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230112/6b5b097a/attachment-0001.htm>
More information about the tbb-commits
mailing list