From 24bfff9cf17e7b045a14a979c16dbb89a1a8cc59 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 4 Apr 2010 16:32:15 -0700 Subject: [PATCH] See if a build will run! --- support/buildbot/bootstrap.pl | 5 +++-- support/buildbot/startbuild.pl | 14 +++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/support/buildbot/bootstrap.pl b/support/buildbot/bootstrap.pl index 476fff6b..91004b33 100755 --- a/support/buildbot/bootstrap.pl +++ b/support/buildbot/bootstrap.pl @@ -55,7 +55,8 @@ print DIRECTIONS "release = amxmodx-" . Build::ProductVersion('product.version') "-hg" . Build::HgRevNum('.') . "\n"; close(DIRECTIONS); -#Clean the output path. +#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 \"" . Cwd::abs_path('../OUTPUT') . "\""); +Build::Command("mkdir ../OUTPUT"); diff --git a/support/buildbot/startbuild.pl b/support/buildbot/startbuild.pl index 5c1c2dba..a72ce804 100755 --- a/support/buildbot/startbuild.pl +++ b/support/buildbot/startbuild.pl @@ -2,7 +2,6 @@ use File::Basename; -our (@LIBRARIES); my ($myself, $path) = fileparse($0); chdir($path); @@ -10,5 +9,18 @@ require 'helpers.pm'; chdir('../../installer/builder'); +if ($^O eq "linux") { + system("mono builder.exe"); +} else { + system("builder.exe"); +} +if ($? != 0) +{ + die "Build failed: $!\n"; +} +else +{ + exit(0); +}