2008-09-06 09:39:10 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
2008-09-06 10:35:27 +02:00
|
|
|
use strict;
|
|
|
|
use Cwd;
|
|
|
|
use File::Basename;
|
|
|
|
|
|
|
|
my ($myself, $path) = fileparse($0);
|
|
|
|
chdir($path);
|
|
|
|
|
2008-09-06 10:19:05 +02:00
|
|
|
require 'helpers.pm';
|
2008-09-06 09:39:10 +02:00
|
|
|
|
2008-09-06 10:19:05 +02:00
|
|
|
chdir(Build::PathFormat('../builder'));
|
2008-09-06 09:39:10 +02:00
|
|
|
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';
|
|
|
|
|