зеркало из https://github.com/mozilla/gecko-dev.git
Adding support for external, post-mozilla builds.
This commit is contained in:
Родитель
f4c8cd4d0b
Коммит
4a69cb34d8
|
@ -18,10 +18,16 @@ use POSIX qw(sys_wait_h strftime);
|
|||
use Cwd;
|
||||
use File::Basename; # for basename();
|
||||
use Config; # for $Config{sig_name} and $Config{sig_num}
|
||||
$::UtilsVersion = '$Revision: 1.49 $ ';
|
||||
$::UtilsVersion = '$Revision: 1.50 $ ';
|
||||
|
||||
package TinderUtils;
|
||||
|
||||
#
|
||||
# Optional, external, post-mozilla build
|
||||
#
|
||||
require "post-mozilla.pl" if -e "post-mozilla.pl";
|
||||
|
||||
|
||||
#
|
||||
# Driver script should call into this file like this:
|
||||
# TinderUtils::Setup()
|
||||
|
@ -536,7 +542,7 @@ sub mail_build_finished_message {
|
|||
}
|
||||
|
||||
sub BuildIt {
|
||||
# $Settings::DirName is set in buildl-seamonkey-utils.pl
|
||||
# $Settings::DirName is set in build-seamonkey-utils.pl
|
||||
mkdir $Settings::DirName, 0777;
|
||||
chdir $Settings::DirName or die "Couldn't enter $Settings::DirName";
|
||||
|
||||
|
@ -677,6 +683,14 @@ sub BuildIt {
|
|||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Run (optional) external, post-mozilla build here.
|
||||
#
|
||||
my $external_build = "$Settings::BaseDir/post-mozilla.pl";
|
||||
if (-e $external_build and $build_status eq 'success') {
|
||||
PostMozilla::main();
|
||||
}
|
||||
|
||||
close LOG;
|
||||
chdir $build_dir;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче