be quieter when cleaning, to make listdeps work better
Jesse Luehrs [Mon, 16 May 2011 20:13:46 +0000 (15:13 -0500)]
inc/Clean.pm

index ce528b5..cf8fee0 100644 (file)
@@ -8,7 +8,13 @@ sub before_build {
 
     if (-e 'Makefile') {
         $self->log("Running make distclean to clear out build cruft");
-        system("$^X Makefile.PL && make distclean");
+        unless (fork) {
+            close(STDIN);
+            close(STDOUT);
+            close(STDERR);
+            { exec("$^X Makefile.PL && make distclean") }
+            die "couldn't exec: $!";
+        }
     }
 
     if (-e 'META.yml') {