mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
27 lines
299 B
Perl
Executable File
27 lines
299 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use File::Basename;
|
|
|
|
my ($myself, $path) = fileparse($0);
|
|
chdir($path);
|
|
|
|
require 'helpers.pm';
|
|
|
|
chdir('../../installer/builder');
|
|
|
|
if ($^O eq "linux") {
|
|
system("mono builder.exe");
|
|
} else {
|
|
system("builder.exe");
|
|
}
|
|
|
|
if ($? != 0)
|
|
{
|
|
die "Build failed: $!\n";
|
|
}
|
|
else
|
|
{
|
|
exit(0);
|
|
}
|
|
|