Abstracting a few variables for checkout target.

git-svn-id: svn://10.0.0.236/trunk@63830 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcafee%netscape.com 2000-03-23 06:05:10 +00:00
parent efe58c7e15
commit ad8d545a12
2 changed files with 14 additions and 10 deletions

View File

@ -18,15 +18,15 @@ 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.11 $ ';
$::UtilsVersion = '$Revision: 1.12 $ ';
package TinderUtils;
#
# Driver script should call into this file like this:
# TinderUtils::InitAndParseArgs()
# TinderUtils::Setup()
# tree_specific_overrides()
# TinderUtils::SetupAndBuild($args);
# TinderUtils::Build($args);
#
sub Setup {
@ -544,8 +544,8 @@ sub BuildIt {
PrintEnv();
unless (-e "mozilla/client.mk") {
run_shell_command "$Settings::CVS $cvsco mozilla/client.mk";
unless (-e "$TreeSpecific::name/client.mk") {
run_shell_command "$Settings::CVS $cvsco $TreeSpecific::name/client.mk";
}
chdir $Settings::Topsrcdir or die "chdir $Settings::Topsrcdir: $!\n";
@ -556,8 +556,9 @@ sub BuildIt {
DeleteBinary($full_binary_name);
my $make = "$Settings::Make -f client.mk";
my $targets = '';
$targets = 'checkout realclean build' unless $Settings::BuildDepend;
my $targets = $TreeSpecific::checkout_target;
$targets = $TreeSpecific::checkout_clobber_target unless $Settings::BuildDepend;
my $status = run_shell_command "$make $targets";
if ($status != 0) {
$build_status = 'busted';

View File

@ -10,9 +10,9 @@ use strict;
# "use strict" complains if we do not define these.
# They are not initialized here. The default values are after "__END__".
$TreeSpecific::checkout_command = $::Version = undef;
$TreeSpecific::name = $TreeSpecific::checkout_target = $TreeSpecific::checkout_clobber_target = $::Version = undef;
$::Version = '$Revision: 1.93 $ ';
$::Version = '$Revision: 1.94 $ ';
{
TinderUtils::Setup();
@ -28,7 +28,10 @@ $::Version = '$Revision: 1.93 $ ';
sub tree_specific_overides {
$ENV{CVSROOT} = ":pserver:$ENV{USER}%netscape.com\@cvs.mozilla.org:/cvsroot";
$TreeSpecific::checkout_command = "aaaa";
$TreeSpecific::name = 'mozilla';
$TreeSpecific::checkout_target = '';
$TreeSpecific::checkout_clobber_target = "checkout realclean build";
}