зеркало из https://github.com/mozilla/pjs.git
Moving InitVars and LoadConfig over to build-seamonkey-util.pl.
This commit is contained in:
Родитель
014209f138
Коммит
4ae82e23eb
|
@ -6,6 +6,15 @@ use Sys::Hostname;
|
|||
use POSIX "sys_wait_h";
|
||||
use Cwd;
|
||||
|
||||
sub InitVars {
|
||||
for (@ARGV) {
|
||||
# Save DATA section for printing the example.
|
||||
return if /^--example-config$/;
|
||||
}
|
||||
eval while <DATA>; # See __END__ section below
|
||||
}
|
||||
|
||||
|
||||
sub GetSystemInfo {
|
||||
$OS = `uname -s`;
|
||||
$OSVer = `uname -r`;
|
||||
|
@ -95,6 +104,18 @@ sub GetSystemInfo {
|
|||
}
|
||||
}
|
||||
|
||||
sub LoadConfig {
|
||||
if (-r 'tinder-config.pl') {
|
||||
require 'tinder-config.pl';
|
||||
} else {
|
||||
warn "Error: Need tinderbox config file, tinder-config.pl\n";
|
||||
warn " To get started, run the following,\n";
|
||||
warn " $0 --example-config > tinder-config.pl\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub SetupEnv {
|
||||
umask 0;
|
||||
#$ENV{CVSROOT} = ':pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot';
|
||||
|
|
|
@ -10,7 +10,7 @@ use Sys::Hostname;
|
|||
use POSIX "sys_wait_h";
|
||||
use Cwd;
|
||||
|
||||
$Version = '$Revision: 1.40 $ ';
|
||||
$Version = '$Revision: 1.41 $ ';
|
||||
|
||||
|
||||
sub PrintUsage {
|
||||
|
@ -91,14 +91,6 @@ sub ParseArgs {
|
|||
&PrintUsage if $BuildTree =~ /^\s+$/i;
|
||||
}
|
||||
|
||||
sub InitVars {
|
||||
for (@ARGV) {
|
||||
# Save DATA section for printing the example.
|
||||
return if /^--example-config$/;
|
||||
}
|
||||
eval while <DATA>; # See __END__ section below
|
||||
}
|
||||
|
||||
sub PrintExampleConfig {
|
||||
print "#- tinder-config.pl - Tinderbox configuration file.\n";
|
||||
print "#- Uncomment the variables you need to set.\n";
|
||||
|
@ -119,19 +111,6 @@ sub ConditionalArgs {
|
|||
}
|
||||
|
||||
|
||||
|
||||
sub LoadConfig {
|
||||
if (-r 'tinder-config.pl') {
|
||||
require 'tinder-config.pl';
|
||||
} else {
|
||||
warn "Error: Need tinderbox config file, tinder-config.pl\n";
|
||||
warn " To get started, run the following,\n";
|
||||
warn " $0 --example-config > tinder-config.pl\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub BuildIt {
|
||||
my $EarlyExit, $LastTime, $SaveCVSCO, $comptmp;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче