mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Automatically set BaseDir to cwd(), this avoids possibility of manual error and not finding mozconfig files properly.
This commit is contained in:
parent
b0c0b8a04e
commit
4ea66e5bfd
@ -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 '') {
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user