sourcemod/tools/buildbot/bootstrap.pl
David Anderson f85eeb2adb Finally, paths sorted out I think.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402495
2008-09-06 08:35:27 +00:00

26 lines
489 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use Cwd;
use File::Basename;
my ($myself, $path) = fileparse($0);
chdir($path);
require 'helpers.pm';
chdir(Build::PathFormat('../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';