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