From: gfx Date: Mon, 8 Mar 2010 05:51:33 +0000 (+0900) Subject: Makefile.PL accepts --author option, to install author's prerequisites X-Git-Tag: 0.50_08~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e8c583d39336326e5c4716aa71ab7510cdea1037;p=gitmo%2FMouse.git Makefile.PL accepts --author option, to install author's prerequisites --- diff --git a/Makefile.PL b/Makefile.PL index cbcd6ae..daf48fa 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,3 +1,11 @@ +# 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;