Fixed bootstrapping on Windows (I hope).

This commit is contained in:
David Anderson 2010-04-04 16:37:28 -07:00
parent 24bfff9cf1
commit eb6ab857fc

View File

@ -36,6 +36,11 @@ if (!(-f 'builder.exe')) {
}
chdir('../..');
if (-d '../OUTPUT') {
Build::Delete(Cwd::abs_path('../OUTPUT'));
}
Build::Command("mkdir ../OUTPUT");
#Output directions on how to build.
open(DIRECTIONS, '>installer/builder/directions.info');
if ($^O eq "linux") {
@ -55,8 +60,3 @@ print DIRECTIONS "release = amxmodx-" . Build::ProductVersion('product.version')
"-hg" . Build::HgRevNum('.') . "\n";
close(DIRECTIONS);
#Clean the output path. Create dir twice for abs_path hack (Windows).
Build::Command("mkdir ../OUTPUT");
Build::Delete("" . Cwd::abs_path('../OUTPUT'));
Build::Command("mkdir ../OUTPUT");