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

Bug 40641: Add projects/firefox-l10n

parent 7d6a2d1b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ etc ...). You will need to install the uidmap package, providing the
newuidmap and newgidmap commands.
The sources of most components are downloaded using git, which needs to
be installed.
be installed. The mercurial package is also needed.
You also need a few perl modules installed:
- YAML::XS
......@@ -40,7 +40,7 @@ If you are running Debian or Ubuntu, you can install them with:
libstring-shellquote-perl libsort-versions-perl \
libdigest-sha-perl libdata-uuid-perl libdata-dump-perl \
libfile-copy-recursive-perl libfile-slurp-perl git \
uidmap
mercurial uidmap
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") -%]
rm -Rf '[% dest_dir %]/[% c("filename") %]'
mkdir -p [% dest_dir %]/[% c("filename") %]
mv -v *.tar.xz [% dest_dir %]/[% c("filename") %]
# vim: filetype=yaml sw=2
version: '[% pc("firefox", "abbrev") %]'
filename: '[% project %]-[% c("var/osname") %]-[% c("version") %]-1'
link_input_files: 1
steps:
fetch_locale:
filename: 'l10n-[% c("input_file_var/locale") %]-[% c("hg_hash") %]-[% c("var/build_id") %].tar.xz'
version: '[% c("hg_hash") %]'
fetch_locale: |
[% c("var/set_default_env") -%]
tar xf '[% project %]-[% c("version") %].tar.gz'
mv [% project %]-[% c("version") %] [% c("input_file_var/locale") %]
tar caf '[% dest_dir %]/[% c("filename") %]' [% c("input_file_var/locale") %]
input_files: []
--- |
# This part of the file contains options written in perl
use JSON;
use Path::Tiny;
(
input_files => sub {
my ($project, $options) = @_;
my @input_files;
my $changesets_json = project_config('firefox', 'var/l10n-changesets', { %$options, origin_project => $project });
my $d = decode_json $changesets_json;
my $locales = project_config($project, 'var/locales', $options);
foreach my $locale (@$locales) {
$locale = process_template($project, $locale, '.');
next unless my $revision = $d->{$locale}{revision};
my $input_file = {
name => $locale,
project => 'firefox-l10n',
pkg_type => 'fetch_locale',
hg_hash => $revision,
hg_url => "https://hg.mozilla.org/l10n-central/$locale",
hg_clone_subdir => $locale,
input_file_var => {
locale => $locale,
},
};
push @input_files, $input_file;
}
return [@input_files];
},
)
......@@ -37,6 +37,8 @@ var:
mv -f -- "$rezip_tmpdir/new.zip" [% c("rezip_file") %]
rm -Rf "$rezip_tmpdir"
l10n-changesets: '[% exec("cat browser/locales/l10n-changesets.json") %]'
steps:
src-tarballs:
filename: 'src-[% project %]-[% c("version") %].tar.xz'
......
rbm @ a6ccc103
Subproject commit 8ed3aa1c0b65c711947df2f0d483215510514253
Subproject commit a6ccc103fe59f6b520777308af92bf98113e2c90
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment