Revised Makefile.PL and Build.PL.
This commit is contained in:
parent
d25b673fd5
commit
a852d4969f
2
Build.PL
2
Build.PL
@ -1,5 +1,7 @@
|
||||
#! /usr/bin/perl -w
|
||||
require 5.008;
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use Module::Build;
|
||||
|
||||
my $build = Module::Build->new(
|
||||
|
16
Makefile.PL
16
Makefile.PL
@ -1,17 +1,9 @@
|
||||
#! /usr/bin/perl -w
|
||||
require 5.008;
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use ExtUtils::MakeMaker;
|
||||
|
||||
use vars qw($eummver %sign %license);
|
||||
$eummver = $ExtUtils::MakeMaker::VERSION;
|
||||
$eummver =~ s/_//;
|
||||
# SIGN is only availabe since ExtUtils::MakeMaker 6.18
|
||||
%sign = qw();
|
||||
%sign = (SIGN => 1) if $eummver > 6.17;
|
||||
# LICENSE is only availabe since ExtUtils::MakeMaker 6.30_01
|
||||
%license = qw();
|
||||
%license = (LICENSE => "perl") if $eummver > 6.30;
|
||||
|
||||
WriteMakefile(
|
||||
NAME => "Acme::GuessNumber",
|
||||
VERSION => "0.04",
|
||||
@ -19,8 +11,8 @@ WriteMakefile(
|
||||
AUTHOR => "imacat <imacat\@mail.imacat.idv.tw>",
|
||||
PREREQ_PM => { },
|
||||
PL_FILES => { },
|
||||
%sign,
|
||||
%license,
|
||||
LICENSE => "perl",
|
||||
SIGN => 1,
|
||||
|
||||
dist => {
|
||||
COMPRESS => "gzip -9",
|
||||
|
Loading…
Reference in New Issue
Block a user