* lib/Parrot/Pmc2c/MethodEmitter.pm:
[parrot.git] / Makefile.PL
blob31e35e6ae920bdd1c6d1faf5c3b656c852665504
1 #! perl
3 # Copyright (C) 2007-2008, The Perl Foundation.
4 # $Id$
6 =head1 NAME
8 Makefile.PL - CPAN installer passthrough to configure Parrot
10 =head1 DESCRIPTION
12 This file exists only to allow users of a CPAN shell to configure and build
13 Parrot.  If you're reading this yourself, use F<Configure.pl>
15 =cut
17 use strict;
18 use warnings;
20 my %translations =
22     INSTALL_BASE => 'prefix',
23     LIB          => 'lib',
24     PREFIX       => 'prefix',
27 my @commands;
29 for my $arg (@ARGV)
31     my ($name, $value) = split /=/, $arg, 2;
32     next unless exists $translations{ $name };
33     push @commands, "--$name=$value";
36 system( $^X, 'Configure.pl', @commands );
38 # Local Variables:
39 #   mode: cperl
40 #   cperl-indent-level: 4
41 #   fill-column: 100
42 # End:
43 # vim: expandtab shiftwidth=4: