X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=00a6b6876b27d198d5e6b4053a2dbf28fd31c387;hb=2462603aa36378017c6fe18eb41cd17d2c24e0d9;hp=d83108e70875eba7dd898ed2f5ac756761fb0e9e;hpb=da1d264b1de0a4762f6e77f61b4d577144b07889;p=gitmo%2FMouse.git diff --git a/Makefile.PL b/Makefile.PL index d83108e..00a6b68 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,9 +1,18 @@ +# for developpers: +BEGIN{ + if(grep{ $_ eq '--author' } @ARGV){ + print "^X -S cpanm < author/requires.cpanm\n"; + system "$^X -S cpanm < author/requires.cpanm"; + } +} + use strict; use warnings; use inc::Module::Install; # for co-developpers use Module::Install::XSUtil 0.21; +use Module::Install::AuthorTests; system($^X, 'tool/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 or warn "Cannot generate Mouse::Tiny: $!"; @@ -70,7 +79,7 @@ author_tests 'xt'; repository 'git://git.moose.perl.org/Mouse.git'; -clean_files 'lib/Mouse/Tiny.pm $(O_FILES)'; +clean_files 'lib/Mouse/Tiny.pm $(O_FILES) test-mydeps-*.log'; if (author_context()) {