mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Check for makefiles before running make to avoid needless errors. sr=alecf
This commit is contained in:
parent
004836dcaf
commit
00402d8f86
@ -57,8 +57,14 @@ while ($#dirs != -1) {
|
||||
# pop the curdir
|
||||
$curdir = pop @dirs;
|
||||
|
||||
print STDERR "Entering $curdir.. \r";
|
||||
print STDERR "Entering $curdir.. \n";
|
||||
chdir "$curdir" || next;
|
||||
if ($^O eq "linux") {
|
||||
next if (! -e "$curdir/Makefile");
|
||||
} elsif ($^O eq "MSWin32") {
|
||||
next if (! -e "$curdir/makefile.win");
|
||||
}
|
||||
|
||||
$current_dirs = "";
|
||||
open(MAKEOUT, "$makecommand echo-dirs echo-module echo-requires|") || die "Can't make: $!\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user