[svn:parrot] r46938 - trunk/tools/build
bacek at svn.parrot.org
bacek at svn.parrot.org
Mon May 24 03:29:22 UTC 2010
Author: bacek
Date: Mon May 24 03:29:22 2010
New Revision: 46938
URL: https://trac.parrot.org/parrot/changeset/46938
Log:
Explicitely use PConfig{bindir} to invoke ops2c from ops2c.pl
Modified:
trunk/tools/build/ops2c.pl
Modified: trunk/tools/build/ops2c.pl
==============================================================================
--- trunk/tools/build/ops2c.pl Mon May 24 03:25:45 2010 (r46937)
+++ trunk/tools/build/ops2c.pl Mon May 24 03:29:22 2010 (r46938)
@@ -5,10 +5,16 @@
use strict;
use warnings;
+use FindBin qw($Bin);
+use lib "$Bin/../lib"; # install location
+use Parrot::Config;
+use File::Spec;
+
warn 'ops2c.pl is deprecated. Use ops2c$(EXE) instead';
# Ignore "core"
shift @ARGV;
-exec 'ops2c', @ARGV;
+my $ops2c = File::Spec->catfile($PConfig{bindir}, 'ops2c');
+exec $ops2c, @ARGV;
# Local Variables:
# mode: cperl
More information about the parrot-commits
mailing list