Added startbuild script.
Added startbuild script.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tools/buildbot/startbuild.pl Sat Sep 06 09:24:39 2008 +0000
1.3 @@ -0,0 +1,25 @@
1.4 +#!/usr/bin/perl
1.5 +
1.6 +use File::Basename;
1.7 +
1.8 +my ($myself, $path) = fileparse($0);
1.9 +chdir($path);
1.10 +chdir('..');
1.11 +chdir('..');
1.12 +
1.13 +my ($cmd, $output);
1.14 +
1.15 +$cmd = 'tools/builder/builder.exe build.cfg 2>&1';
1.16 +
1.17 +if ($^O eq "linux")
1.18 +{
1.19 + $cmd = 'mono ' . $cmd;
1.20 +}
1.21 +
1.22 +print "$cmd\n";
1.23 +$output = `$cmd`;
1.24 +
1.25 +print $output;
1.26 +
1.27 +die "Build failed: $!\n" if $?;
1.28 +