--HG-- rename : tools/buildbot/build_builder.pl => tools/buildbot/bootstrap.pl extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402493
23 lines
518 B
Perl
Executable File
23 lines
518 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
my $incoming = shift;
|
|
|
|
die "Invalid source folder.\n" unless $incoming ne '';
|
|
|
|
require $incoming . '/tools/buildbot/helpers.pm';
|
|
|
|
chdir(Build::PathFormat($incoming . '/tools/builder'));
|
|
if ($^O eq "linux")
|
|
{
|
|
Build::Command('make clean');
|
|
Build::Command('make');
|
|
}
|
|
else
|
|
{
|
|
Build::Command($ENV{'MSVC7'} . ' /Rebuild Release builder.csproj');
|
|
Build::Command('move ' . Build::PathFormat('bin/Release/builder.exe') . ' .');
|
|
}
|
|
|
|
die "Unable to build builder tool!\n" unless -e 'builder.exe';
|
|
|