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
|
#! /usr/bin/perl -w
|
||||||
|
require 5.008;
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings FATAL => 'all';
|
||||||
use Module::Build;
|
use Module::Build;
|
||||||
|
|
||||||
my $build = Module::Build->new(
|
my $build = Module::Build->new(
|
||||||
|
16
Makefile.PL
16
Makefile.PL
@ -1,17 +1,9 @@
|
|||||||
#! /usr/bin/perl -w
|
#! /usr/bin/perl -w
|
||||||
|
require 5.008;
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings FATAL => 'all';
|
||||||
use ExtUtils::MakeMaker;
|
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(
|
WriteMakefile(
|
||||||
NAME => "Acme::GuessNumber",
|
NAME => "Acme::GuessNumber",
|
||||||
VERSION => "0.04",
|
VERSION => "0.04",
|
||||||
@ -19,8 +11,8 @@ WriteMakefile(
|
|||||||
AUTHOR => "imacat <imacat\@mail.imacat.idv.tw>",
|
AUTHOR => "imacat <imacat\@mail.imacat.idv.tw>",
|
||||||
PREREQ_PM => { },
|
PREREQ_PM => { },
|
||||||
PL_FILES => { },
|
PL_FILES => { },
|
||||||
%sign,
|
LICENSE => "perl",
|
||||||
%license,
|
SIGN => 1,
|
||||||
|
|
||||||
dist => {
|
dist => {
|
||||||
COMPRESS => "gzip -9",
|
COMPRESS => "gzip -9",
|
||||||
|
Loading…
Reference in New Issue
Block a user