Extract inline tests when Makefile.PL is run, if we're not an end
Dave Rolsky [Wed, 18 Feb 2009 20:20:34 +0000 (20:20 +0000)]
user.

Makefile.PL

index 9e90f74..382564e 100644 (file)
@@ -20,6 +20,10 @@ requires 'Task::Weaken'     => '0';
 test_requires 'Test::More'      => '0.77';
 test_requires 'Test::Exception' => '0.21';
 
+if ( -d '.svn' || -d '.git' || $ENV{IS_MAINTAINER} ) {
+    system( $^X, 'extract-inline-tests' );
+}
+
 tests_recursive();
 
 WriteAll();