Use Module::Install built in detection of author mode
Tomas Doran [Tue, 8 Dec 2009 01:04:19 +0000 (01:04 +0000)]
Makefile.PL

index 1b50c2d..44af576 100644 (file)
@@ -29,7 +29,7 @@ author_requires 'Test::Inline';
 author_requires 'File::Find::Rule';
 author_requires 'Module::Info';
 
-if ( -d '.svn' || -d '.git' || $ENV{IS_MAINTAINER} ) {
+if ( $Module::Install::AUTHOR || $ENV{IS_MAINTAINER} ) {
     system( $^X, 'author/extract-inline-tests' );
 }