diff --git a/support/buildbot/bootstrap.pl b/support/buildbot/bootstrap.pl index 91004b33..a7e01b49 100755 --- a/support/buildbot/bootstrap.pl +++ b/support/buildbot/bootstrap.pl @@ -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"); -