From eb6ab857fc89278db7bfa8a096ee532083e4c160 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 4 Apr 2010 16:37:28 -0700 Subject: [PATCH] Fixed bootstrapping on Windows (I hope). --- support/buildbot/bootstrap.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"); -