2010-04-04 23:07:37 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use File::Basename;
|
|
|
|
|
|
|
|
my ($myself, $path) = fileparse($0);
|
|
|
|
chdir($path);
|
|
|
|
|
|
|
|
require 'helpers.pm';
|
|
|
|
|
2010-04-04 23:24:42 +00:00
|
|
|
chdir('../../installer/builder');
|
2010-04-04 23:07:37 +00:00
|
|
|
|
2010-04-04 23:58:24 +00:00
|
|
|
my $output;
|
2013-02-13 07:22:40 +00:00
|
|
|
if ($^O eq "linux" || $^O eq "darwin") {
|
2010-04-05 00:02:16 +00:00
|
|
|
$output = `mono builder.exe directions.info`;
|
2010-04-04 23:32:15 +00:00
|
|
|
} else {
|
2010-04-05 00:02:16 +00:00
|
|
|
$output = `builder.exe directions.info`;
|
2010-04-04 23:32:15 +00:00
|
|
|
}
|
2010-04-05 00:02:16 +00:00
|
|
|
print $output . "\n";
|
2010-04-04 23:07:37 +00:00
|
|
|
|
2010-04-05 00:11:11 +00:00
|
|
|
if (!($output =~ /Build succeeded/)) {
|
2010-04-04 23:58:24 +00:00
|
|
|
die "Build failed!\n";
|
|
|
|
} else {
|
2010-04-04 23:32:15 +00:00
|
|
|
exit(0);
|
|
|
|
}
|
2010-04-04 23:07:37 +00:00
|
|
|
|