From f8ba674a80702c7c5a4c32c8ab724708f6f330a6 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 11 Jun 2011 23:02:22 -0700 Subject: [PATCH] making sure to not install extraneous files when building the deb --- Makefile.PL | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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',