Bug 382759 - "MozillaBuild 1.1's 'mkdir -p' command is unreliable". r=bsmedberg.
authorbent.mozilla@gmail.com
Mon, 04 Jun 2007 17:33:21 -0700
changeset 2118 0260a746962eaf14cb6e8817c6a48e17701518a4
parent 2117 9ef521b707cd59f677a822882809e6090f3eb78e
child 2119 1c24380da1ae750d3dfc2cdba9d4981cf08b6398
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs382759
milestone1.9a6pre
Bug 382759 - "MozillaBuild 1.1's 'mkdir -p' command is unreliable". r=bsmedberg.
build/autoconf/acoutput-fast.pl
--- a/build/autoconf/acoutput-fast.pl
+++ b/build/autoconf/acoutput-fast.pl
@@ -85,24 +85,20 @@ sub create_directories {
   my @makefiles = @_;
   my @dirs = ();
   my $ac_file;
   foreach $ac_file (@makefiles) {
     push @dirs, dirname($ac_file);
   }
   # Call mkdir with the directories sorted by subdir count (how many /'s)
   if (@dirs) {
-    my $mkdir_command = "mkdir -p ". join(' ', @dirs);
-    if (system($mkdir_command)  != 0) {
-      print STDERR "Creating dirs all at once failed; trying one at atime\n";
-      foreach $dir (@dirs) {
-        if (not -d $dir) {
-          print STDERR "Creating directory $dir\n";
-          create_directory($dir);
-        }
+    foreach $dir (@dirs) {
+      if (not -d $dir) {
+        print STDERR "Creating directory $dir\n";
+        create_directory($dir);
       }
     }
   }
 }
 
 while($arg = shift) {
     if ($arg =~ /^--srcdir=/) {
         $ac_given_srcdir = (split /=/, $arg)[1];