Added startbuild script.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402497
This commit is contained in:
parent
51f914fb30
commit
0137219fb8
25
tools/buildbot/startbuild.pl
Executable file
25
tools/buildbot/startbuild.pl
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
use File::Basename;
|
||||||
|
|
||||||
|
my ($myself, $path) = fileparse($0);
|
||||||
|
chdir($path);
|
||||||
|
chdir('..');
|
||||||
|
chdir('..');
|
||||||
|
|
||||||
|
my ($cmd, $output);
|
||||||
|
|
||||||
|
$cmd = 'tools/builder/builder.exe build.cfg 2>&1';
|
||||||
|
|
||||||
|
if ($^O eq "linux")
|
||||||
|
{
|
||||||
|
$cmd = 'mono ' . $cmd;
|
||||||
|
}
|
||||||
|
|
||||||
|
print "$cmd\n";
|
||||||
|
$output = `$cmd`;
|
||||||
|
|
||||||
|
print $output;
|
||||||
|
|
||||||
|
die "Build failed: $!\n" if $?;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user