From 581f1868f20d4bca2aae77b9aeb547e054f2a444 Mon Sep 17 00:00:00 2001 From: Daniel Dragan Date: Sun, 25 Oct 2015 19:31:27 -0400 Subject: dont install PPPort.so/PPPort.dll This shared lib is only used for PPPort testing itself, it is similar to APItest.dll in purpose. PPPort.pm never uses XSLoader/DynaLoader, only its .t files do. This saves 616KB in the final install dir on Win32, and atleast one or two dozen KB on all OSes. Since where is auto dir, and what is arch dir, is complicated and unportable (atleast to me), and what other files live next to the shared lib (examples, .pdb file, .bs file, .a file) match the directory fragment, not the files inside of it or the dirs full path. Directory of C:\p523\src\lib\auto\Devel\PPPort 10/25/2015 07:16 PM . 10/25/2015 07:16 PM .. 10/25/2015 07:16 PM 0 .exists 10/25/2015 07:16 PM 59,392 PPPort.dll 10/25/2015 07:16 PM 796 PPPort.exp 10/25/2015 07:16 PM 1,738 PPPort.lib 10/25/2015 07:16 PM 569,344 PPPort.pdb 5 File(s) 631,270 bytes --- installperl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'installperl') diff --git a/installperl b/installperl index 866bf5d989..5ea37be9a9 100755 --- a/installperl +++ b/installperl @@ -671,8 +671,8 @@ sub installlib { return if $name =~ /^(?:cpan|instmodsh|prove|corelist|ptar|ptardiff|ptargrep|zipdetails)\z/; # ignore the Makefiles return if $name =~ /^makefile$/i; - # ignore the test extensions - return if $dir =~ m{\bXS/(?:APItest|Typemap)\b}; + # ignore the test extensions, dont install PPPort.so/.dll + return if $dir =~ m{\b(?:XS/(?:APItest|Typemap)|Devel/PPPort)\b}; return if $name =~ m{\b(?:APItest|Typemap)\.pm$}; # ignore the build support code return if $name =~ /\bbuildcustomize\.pl$/; -- cgit v1.2.1