ability to download and unpack prebuilt binaries. r=preed, b=342783

This commit is contained in:
rhelmer%mozilla.com 2006-06-28 17:43:07 +00:00
Родитель a99966c50d
Коммит bd59894cdb
1 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.320 $ ';
$::UtilsVersion = '$Revision: 1.321 $ ';
package TinderUtils;
@ -1100,6 +1100,19 @@ sub BuildIt {
$build_status = 'success';
}
}
} elsif ($build_status ne 'busted' and $Settings::TestOnlyTinderbox) {
my $prebuilt = "$build_dir/$Settings::DownloadBuildDir";
my $status = 0;
if ( -f $prebuilt) {
$status = run_shell_command("rm -rf $prebuilt");
$build_status = 'busted' if not ($status);
}
$status = run_shell_command("mkdir -p $prebuilt");
$build_status = 'busted' if not ($status);
$status = run_shell_command("wget -O $prebuilt/build.tgz $Settings::DownloadBuildURL");
$build_status = 'busted' if not ($status);
$status = run_shell_command("tar -C $prebuilt -xvf $prebuilt/build.tgz");
$build_status = 'busted' if not ($status);
}
if ($build_status ne 'busted' and BinaryExists($full_binary_name)) {