mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
See if a build will run!
This commit is contained in:
parent
1d3f91be43
commit
24bfff9cf1
@ -55,7 +55,8 @@ print DIRECTIONS "release = amxmodx-" . Build::ProductVersion('product.version')
|
|||||||
"-hg" . Build::HgRevNum('.') . "\n";
|
"-hg" . Build::HgRevNum('.') . "\n";
|
||||||
close(DIRECTIONS);
|
close(DIRECTIONS);
|
||||||
|
|
||||||
#Clean the output path.
|
#Clean the output path. Create dir twice for abs_path hack (Windows).
|
||||||
|
Build::Command("mkdir ../OUTPUT");
|
||||||
Build::Delete("" . Cwd::abs_path('../OUTPUT'));
|
Build::Delete("" . Cwd::abs_path('../OUTPUT'));
|
||||||
Build::Command("mkdir \"" . Cwd::abs_path('../OUTPUT') . "\"");
|
Build::Command("mkdir ../OUTPUT");
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
|
|
||||||
our (@LIBRARIES);
|
|
||||||
my ($myself, $path) = fileparse($0);
|
my ($myself, $path) = fileparse($0);
|
||||||
chdir($path);
|
chdir($path);
|
||||||
|
|
||||||
@ -10,5 +9,18 @@ require 'helpers.pm';
|
|||||||
|
|
||||||
chdir('../../installer/builder');
|
chdir('../../installer/builder');
|
||||||
|
|
||||||
|
if ($^O eq "linux") {
|
||||||
|
system("mono builder.exe");
|
||||||
|
} else {
|
||||||
|
system("builder.exe");
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($? != 0)
|
||||||
|
{
|
||||||
|
die "Build failed: $!\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user