From: Matt S Trout Date: Mon, 13 Aug 2007 13:02:20 +0000 (+0000) Subject: make Makefile.PL detect author-ness and require Test::Perl::Critic X-Git-Tag: 5.7099_04~162 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=de925c791f8d58fb2408c36c63c1b6af2cb436c4;hp=273f165ac9e5b22da929f166170982141a068e12 make Makefile.PL detect author-ness and require Test::Perl::Critic --- diff --git a/Makefile.PL b/Makefile.PL index 5d25050..e9b18eb 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -31,6 +31,10 @@ requires 'Tree::Simple::Visitor::FindByPath'; requires 'URI' => '1.35'; requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness +if (-e 'inc/.author') { + build_requires 'Test::Perl::Critic'; +} + install_script glob('script/*.pl'); auto_install; WriteAll;