configure
raw| 1 | #!/usr/bin/perl -w |
| 2 | |
| 3 | # Pragma ------------------------------ |
| 4 | |
| 5 | use 5.006; |
| 6 | use strict; |
| 7 | |
| 8 | # Utility ----------------------------- |
| 9 | |
| 10 | use Getopt::Long 2.19 qw( GetOptions ); |
| 11 | |
| 12 | my $prefix; |
| 13 | GetOptions('prefix=s' => \$prefix,) |
| 14 | or die "Options parsing failed"; |
| 15 | |
| 16 | my @cmd = ($^X => 'Makefile.PL'); |
| 17 | push @cmd, "PREFIX=$prefix" |
| 18 | if defined $prefix; |
| 19 | |
| 20 | exec @cmd; |