forked from parrot/parrot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
45 lines (32 loc) · 800 Bytes
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! perl
# Copyright (C) 2007-2008, Parrot Foundation.
# $Id$
=head1 NAME
Makefile.PL - CPAN installer passthrough to configure Parrot
=head1 DESCRIPTION
This file exists only to allow users of a CPAN shell to configure and build
Parrot. If you're reading this yourself, use F<Configure.pl>
=cut
use strict;
use warnings;
BEGIN { require 5.008 }
my %translations =
(
INSTALL_BASE => 'prefix',
LIB => 'lib',
PREFIX => 'prefix',
);
my @commands;
for my $arg (@ARGV)
{
my ($name, $value) = split /=/, $arg, 2;
next unless exists $translations{ $name };
push @commands, "--$name=$value";
}
system( $^X, 'Configure.pl', @commands );
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4: