Bug 344002: l10n nightly builds should automatically pick up version number changes; r=rhelmer

This commit is contained in:
preed%mozilla.com 2006-07-19 22:14:05 +00:00
parent df01f0db44
commit 273897b569
2 changed files with 10 additions and 0 deletions

View File

@ -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) {

View File

@ -43,6 +43,10 @@ $WGetTimeout = 360; # Wget timeout, in seconds
$BuildLocalesArgs = ""; # Extra attributes to add to the makefile command
# which builds the "installers-<locale>" 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;