Automatically set BaseDir to cwd(), this avoids possibility of manual error and not finding mozconfig files properly.

This commit is contained in:
mcafee%netscape.com 2001-06-16 06:30:22 +00:00
parent b0c0b8a04e
commit 4ea66e5bfd
4 changed files with 6 additions and 4 deletions

View File

@ -18,7 +18,7 @@ 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.47 $ ';
$::UtilsVersion = '$Revision: 1.48 $ ';
package TinderUtils;
@ -270,6 +270,11 @@ sub LoadConfig {
sub SetupEnv {
umask 0;
# Assume this file lives in the base dir, this will
# avoid human error from setting this manually.
$Settings::BaseDir = Cwd::getcwd();
my $topsrcdir = "$Settings::BaseDir/$Settings::DirName/mozilla";
if ($Settings::ObjDir ne '') {

View File

@ -6,7 +6,6 @@
$BuildAdministrator = 'mcafee@mocha.com';
#- You'll need to change these to suit your machine's needs
$BaseDir = '/builds/mcafee/tinderbox';
$DisplayServer = ':0.0'; # costarica:0.0
#- Until you get the script working. When it works,

View File

@ -6,7 +6,6 @@
$BuildAdministrator = "mcafee\@netscape.com";
#- You'll need to change these to suit your machine's needs
$BaseDir = '/builds/mcafee/tinderbox';
$DisplayServer = 'costarica.mcom.com:0.0';
#- Default values of command-line opts

View File

@ -2,7 +2,6 @@
$BuildAdministrator = "$ENV{USER}\@$ENV{HOST}";
#- You'll need to change these to suit your machine's needs
$BaseDir = '/builds/tinderbox/SeaMonkey';
$DisplayServer = ':0.0';
#- Default values of command-line opts