X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=Makefile.PL;h=f2df41308238a92cd83fc91f0896a59b73e6f93f;hp=dcac0c9053ad00db193941d1afe1bd59061b81f8;hb=acae07cb4264d1039a86aa31854cca2ce37382f1;hpb=e88c20f0a4b0b3c4f2177c1200a9a37d53fbe14a 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 <