mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
26 lines
409 B
Perl
Executable File
26 lines
409 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use File::Basename;
|
|
|
|
my ($myself, $path) = fileparse($0);
|
|
chdir($path);
|
|
|
|
require 'helpers.pm';
|
|
|
|
chdir('../../installer/builder');
|
|
|
|
my $output;
|
|
if ($^O eq "linux" || $^O eq "darwin") {
|
|
$output = `mono builder.exe directions.info`;
|
|
} else {
|
|
$output = `builder.exe directions.info`;
|
|
}
|
|
print $output . "\n";
|
|
|
|
if (!($output =~ /Build succeeded/)) {
|
|
die "Build failed!\n";
|
|
} else {
|
|
exit(0);
|
|
}
|
|
|