tools/buildbot/bootstrap.pl
changeset 2820 c2fc1eff9f51
parent 2783 5f333027ef04
child 2980 fddc25c39462
     1.1 --- a/tools/buildbot/bootstrap.pl	Sun Oct 04 00:52:53 2009 -0500
     1.2 +++ b/tools/buildbot/bootstrap.pl	Tue Oct 06 01:46:06 2009 -0500
     1.3 @@ -4,6 +4,7 @@
     1.4  use strict;
     1.5  use Cwd;
     1.6  use File::Basename;
     1.7 +use File::Path;
     1.8  
     1.9  my ($myself, $path) = fileparse($0);
    1.10  chdir($path);
    1.11 @@ -20,7 +21,6 @@
    1.12  
    1.13  #Create output folder if it doesn't exist.
    1.14  if (!(-d 'OUTPUT')) {
    1.15 -	mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
    1.16  	$reconf = 1;
    1.17  } else {
    1.18  	if (-f 'OUTPUT/sentinel') {
    1.19 @@ -40,6 +40,8 @@
    1.20  }
    1.21  
    1.22  if ($reconf) {
    1.23 +	rmtree('OUTPUT');
    1.24 +	mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
    1.25  	chdir('OUTPUT');
    1.26  	my ($result);
    1.27  	print "Attempting to reconfigure...\n";