diff --git a/Makefile.PL b/Makefile.PL index a4e92d0..02d42af 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,19 @@ use strict; use warnings; use ExtUtils::MakeMaker; + +sub MY::libscan +{ + package MY; + + my ($self, $file) = @_; + + # Don't install the README.pod or any non-feedGnuplot .pl file + return undef if $file !~ /feedGnuplot.pl/ && $file =~ /\.pl$|^README.pod/; + + return $self->SUPER::libscan ($file); +} + WriteMakefile ( NAME => 'feedGnuplot',