[src] Tidied PIC file to make the code somewhat easier to follow; no functional
[parrot.git] / Makefile.PL
blob9863ef9fbe771b03ca993cb5dd7ddcb5d131987a
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 BEGIN { require 5.008 }
22 my %translations =
24     INSTALL_BASE => 'prefix',
25     LIB          => 'lib',
26     PREFIX       => 'prefix',
29 my @commands;
31 for my $arg (@ARGV)
33     my ($name, $value) = split /=/, $arg, 2;
34     next unless exists $translations{ $name };
35     push @commands, "--$name=$value";
38 system( $^X, 'Configure.pl', @commands );
40 # Local Variables:
41 #   mode: cperl
42 #   cperl-indent-level: 4
43 #   fill-column: 100
44 # End:
45 # vim: expandtab shiftwidth=4: