Skip to content

Instantly share code, notes, and snippets.

@timo
Created April 8, 2015 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/697f1a390eada9add0d3 to your computer and use it in GitHub Desktop.
Save timo/697f1a390eada9add0d3 to your computer and use it in GitHub Desktop.
diff --git a/tools/build/create-moar-runner.pl b/tools/build/create-moar-runner.pl
index 9e9a4aa..f83d07d 100644
--- a/tools/build/create-moar-runner.pl
+++ b/tools/build/create-moar-runner.pl
@@ -5,9 +5,13 @@ use strict;
use warnings;
use 5.008;
use File::Spec;
+use Cwd qw(realpath);
my ($moar, $mbc, $install_to, $p6_mbc_path, @libpaths) = @ARGV;
-$p6_mbc_path = File::Spec->rel2abs($p6_mbc_path || '.');
+$p6_mbc_path = realpath(File::Spec->rel2abs($p6_mbc_path || '.'));
+$moar = realpath($moar);
+
+@libpaths = map { realpath($_) } @libpaths;
if ($^O eq 'MSWin32') {
$install_to .= '.bat';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment