GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Bug 40130: More mobile clean-up

Remove firefox-locale-bundle and remaining mobile bits in the firefox
project.
parent 4aebd17f
......@@ -12,8 +12,7 @@ to extract container file systems, start containers and copy files to and
from containers.
The sources of most components are downloaded using git, which needs to
be installed. Some components are downloaded using mercurial which also
needs to be installed.
be installed.
You also need a few perl modules installed:
- YAML::XS
......@@ -41,8 +40,7 @@ If you are running Debian or Ubuntu, you can install them with:
libio-captureoutput-perl libjson-perl libpath-tiny-perl \
libstring-shellquote-perl libsort-versions-perl \
libdigest-sha-perl libdata-uuid-perl libdata-dump-perl \
libfile-copy-recursive-perl libfile-slurp-perl git runc \
mercurial
libfile-copy-recursive-perl libfile-slurp-perl git runc
The build system is based on rbm, which is included as a git submodule
in the rbm/ directory. You can fetch the rbm git submodule by running
......
#!/bin/bash
[% c("var/set_default_env") -%]
cat > l10n-changesets.json << 'EOF_CHANGESETS'
[% pc('firefox', 'var/l10n-changesets.json') %]
EOF_CHANGESETS
clone_dir='[% c("basedir") %]/hg_clones/[% project %]'
mkdir -p "$clone_dir"
cd "$clone_dir"
tmpdir=$(mktemp -d)
[% FOREACH lang = c('var/locales') %]
[% SET lang = tmpl(lang);
# mk is unavailable on mobile.
NEXT IF lang == 'mk';
SET hgurl = "https://hg.mozilla.org/l10n-central/" _ lang %]
if test -d [% lang %]
then
cd [% lang %]
[% c("hg") %] pull [% hgurl %]
else
[% c("hg") %] clone [% hgurl %] [% lang %]
cd [% lang %]
fi
hg_hash=$([% c("basedir") %]/projects/firefox-locale-bundle/get_hg_hash \
$rootdir/l10n-changesets.json \
[% lang %])
[% c("hg") %] archive -r "$hg_hash" -t files "$tmpdir"/[% lang %]
cd ..
[% END %]
tar -C "$tmpdir" -czf [% dest_dir %]/[% c("filename") %] .
rm -Rf "$tmpdir"
# vim: filetype=yaml sw=2
version: '[% c("var/ff_version") %]-[% c("var/ff_build") %]'
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
var:
use_container: 0
ff_version: '[% pc("firefox", "var/firefox_version") %]'
ff_build: build1
#!/usr/bin/perl -w
use strict;
use Path::Tiny;
use JSON;
sub exit_error {
print STDERR "Error: ", $_[0], "\n";
exit (exists $_[1] ? $_[1] : 1);
}
exit_error("Wrong number of arguments", 1) unless @ARGV == 2;
my ($file, $locale) = @ARGV;
my $json_text = path($file)->slurp_raw;
exit_error("Error reading $file", 2) unless defined $json_text;
my $data = decode_json($json_text);
my $changeset = $data->{$locale}{revision};
exit_error("Can't find locale $locale in $file", 3) unless $changeset;
print "$changeset\n";
......@@ -26,10 +26,6 @@ var:
- pkg-config
container:
use_container: 1
# this should be updated when the list of gradle dependencies is changed
gradle_dependencies_version: 6
# used by projects/firefox-locale-bundle
l10n-changesets.json: '[% exec("cat mobile/locales/l10n-changesets.json") %]'
steps:
src-tarballs:
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment