[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40735: Add command to list which translation components need to be updated
boklm (@boklm)
git at gitlab.torproject.org
Thu Jan 12 11:58:03 UTC 2023
boklm pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
eda7d2c8 by Nicolas Vigier at 2023-01-12T12:29:55+01:00
Bug 40735: Add command to list which translation components need to be updated
- - - - -
4 changed files:
- .gitlab/issue_templates/Release Prep - Alpha.md
- Makefile
- projects/translation/config
- − tools/get-translation-hashes
Changes:
=====================================
.gitlab/issue_templates/Release Prep - Alpha.md
=====================================
@@ -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
=====================================
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/eda7d2c8eebe7b82ceecb438164c24a7fd76d422
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/eda7d2c8eebe7b82ceecb438164c24a7fd76d422
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/82272064/attachment-0001.htm>
More information about the tbb-commits
mailing list