From 4a69cb34d8fa0c719dae3272388e7e7627dc55c3 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Mon, 16 Jul 2001 20:23:52 +0000 Subject: [PATCH] Adding support for external, post-mozilla builds. --- tools/tinderbox/build-seamonkey-util.pl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index e7f4e1a9252b..0e7786afde42 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -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;