From: Vincent Pit Date: Thu, 2 Oct 2008 22:03:27 +0000 (+0200) Subject: Use clean Suppressions.pm and perlTestValgrind.supp when building a dist X-Git-Tag: v0.08~11 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=acae07cb4264d1039a86aa31854cca2ce37382f1;p=perl%2Fmodules%2FTest-Valgrind.git Use clean Suppressions.pm and perlTestValgrind.supp when building a dist --- diff --git a/Makefile.PL b/Makefile.PL index dcac0c9..f2df413 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -125,15 +125,27 @@ WriteMakefile( package MY; +sub dist_core { + my $dist = shift->SUPER::dist_core(@_); + $dist =~ s/^(\s*dist\s*:+\s*)/$1testvg_dist /m; + return <SUPER::test(@_); - return "test :: Makefile.bak blib/archpub/Test/Valgrind/perlTestValgrind.supp\n" . $test; + my ($target) = $test =~ /^\s*(test\s*:+)/m; + return "$target Makefile.bak blib/archpub/$supp\n$test"; } sub postamble { - <<'POSTAMBLE'; + return <