diff --git a/tools/tinderbox/post-mozilla-rel.pl b/tools/tinderbox/post-mozilla-rel.pl index 920fdb3cd413..196d34087669 100755 --- a/tools/tinderbox/post-mozilla-rel.pl +++ b/tools/tinderbox/post-mozilla-rel.pl @@ -724,6 +724,12 @@ sub packit_l10n { TinderUtils::print_log("Starting l10n builds\n"); foreach my $wgeturl (keys(%Settings::WGetFiles)) { + if (defined($Settings::LocalizationVersionFile)) { + my $l10nVersion = read_file("$Settings::TopsrcdirFull/$Settings::LocalizationVersionFile"); + chomp($l10nVersion); + $wgeturl =~ s/%version%/$l10nVersion/g; + } + my $status = TinderUtils::run_shell_command_with_timeout("wget -nv --output-document \"$Settings::WGetFiles{$wgeturl}\" $wgeturl", $Settings::WGetTimeout); if ($status->{exit_value} != 0) { diff --git a/tools/tinderbox/tinder-defaults.pl b/tools/tinderbox/tinder-defaults.pl index b0d70ca237c9..520603beccfa 100644 --- a/tools/tinderbox/tinder-defaults.pl +++ b/tools/tinderbox/tinder-defaults.pl @@ -43,6 +43,10 @@ $WGetTimeout = 360; # Wget timeout, in seconds $BuildLocalesArgs = ""; # Extra attributes to add to the makefile command # which builds the "installers-" target. # Typically used to set ZIP_IN and WIN32_INSTALLER_IN +# If defined, the version file used in the local l10n build tree to construct +# a URL to download for l10n repackaging (makes it so %WGetFiles doesn't need +# to be modified every release). +# $LocalizationVersionFile = "browser/config/version.txt"; # Tests $CleanProfile = 0;