Gives out the version number, if a release is used and the revision number, if a...
[parrot.git] / Makefile.PL
blob2b36d204a62fab8251fa5d29fa3ec7e298dc97e2
1 #! perl
3 # Copyright (C) 2007-2008, Parrot 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: