Bug 382759 - "MozillaBuild 1.1's 'mkdir -p' command is unreliable". r=bsmedberg.

This commit is contained in:
bent.mozilla@gmail.com 2007-06-04 17:33:21 -07:00
parent 6c64f414a1
commit f658bb05b3

View File

@ -90,14 +90,10 @@ sub create_directories {
}
# 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);
}
}
}