Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tools/build/install-jvm-runner.pl] die more
Installed a few die statements where things may fail.
  • Loading branch information
Carl Masak committed Jun 21, 2013
1 parent cf7c721 commit 2aef1f6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/build/install-jvm-runner.pl
Expand Up @@ -14,17 +14,21 @@

if ($^O eq 'MSWin32') {
my $install_to = File::Spec->catfile($prefix, 'nqp.bat');
open my $fh, ">", $install_to;
open my $fh, ">", $install_to
or die "Could not open $install_to: $!";
print $fh '@java -Xbootclasspath/a:' . $prefix . ';' . $prefix . '\\nqp-runtime.jar;' .
$prefix . '\\asm-4.1.jar;' . $prefix . '\\jline-1.0.jar -cp ' . $prefix . ' nqp %*' . "\n";
close $fh;
close $fh
or die "Could not close $install_to: $!";
}
else {
my $install_to = File::Spec->catfile($prefix, 'nqp');
open my $fh, ">", $install_to;
open my $fh, ">", $install_to
or die "Could not open $install_to: $!";
print $fh "#!/bin/sh\n";
print $fh 'exec java -Xbootclasspath/a:' . $prefix . ':' . $prefix . '/nqp-runtime.jar:' .
$prefix . '/asm-4.1.jar:' . $prefix . '/jline-1.0.jar -cp ' . $prefix . ' nqp "$@"' . "\n";
close $fh;
close $fh
or die "Could not close $install_to: $!";
chmod 0755, $install_to;
}

0 comments on commit 2aef1f6

Please sign in to comment.