From: gfx Date: Fri, 9 Oct 2009 06:20:54 +0000 (+0900) Subject: Fix Makefile.PL X-Git-Tag: 0.37_05~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3f9d4c2b0a9fcde78357124e0990823f5f15f44f;p=gitmo%2FMouse.git Fix Makefile.PL --- diff --git a/Makefile.PL b/Makefile.PL index 614a4d0..bc320e1 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,9 @@ use strict; use warnings; use inc::Module::Install; +system($^X, 'author/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 + or warn "Cannot generate Mouse::Tiny: $!"; + name 'Mouse'; all_from 'lib/Mouse.pm'; @@ -19,9 +22,6 @@ include 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wr recommends 'MRO::Compat' if $] < 5.010; -makemaker_args PL_FILES => { 'author/generate-mouse-tiny.pl' => 'lib/Mouse/Tiny.pm' }; -system 'author/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm'; - if ($Module::Install::AUTHOR) { local @INC = ('lib', @INC); require 'lib/Mouse/Spec.pm';