mkdir -p the objdir if it doesn't exist; seems pretty important. me=preed, r=rhelmer.

This commit is contained in:
cltbld 2006-06-29 21:47:25 +00:00
parent 30de22526d
commit 38827786b1

View File

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.322 $ ';
$::UtilsVersion = '$Revision: 1.323 $ ';
package TinderUtils;
@ -391,6 +391,12 @@ sub SetupEnv {
my $topsrcdir = "$Settings::BaseDir/$Settings::DirName/mozilla";
$objdir = "$topsrcdir/${Settings::ObjDir}";
if (not -e $objdir) {
# Not checking errors here, because it's too early to set $status and the
# build will fail anyway; failing loudly is better than failing silently.
run_shell_command("mkdir -p $objdir");
}
$Settings::TopsrcdirFull = $topsrcdir;
$Settings::TopsrcdirLast = $topsrcdir . ".last";