Really fixed version.rc file problem by removing and recreating build OUTPUT directory when required (bug 4042, r=dvander).

This commit is contained in:
Scott Ehlert
2009-10-06 01:46:06 -05:00
parent 3277cc3675
commit 705ea18b2a
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -4,6 +4,7 @@
use strict;
use Cwd;
use File::Basename;
use File::Path;
my ($myself, $path) = fileparse($0);
chdir($path);
@@ -20,7 +21,6 @@ my $reconf = 0;
#Create output folder if it doesn't exist.
if (!(-d 'OUTPUT')) {
mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
$reconf = 1;
} else {
if (-f 'OUTPUT/sentinel') {
@@ -40,6 +40,8 @@ if (!(-d 'OUTPUT')) {
}
if ($reconf) {
rmtree('OUTPUT');
mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
chdir('OUTPUT');
my ($result);
print "Attempting to reconfigure...\n";