summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2009-02-23 12:37:16 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-02-24 10:05:40 +0100
commitb925ea3bf397b0f1251c08d6e6991be69033baef (patch)
treec29a1753be5a79ecb4b9ebae5d314ac1e4c2fd37 /installperl
parentc6cab44f0319b8b2283aefda7c82cb4f2e783aea (diff)
downloadperl-b925ea3bf397b0f1251c08d6e6991be69033baef.tar.gz
Fix to installing non-xs ext's in priv lib
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl3
1 files changed, 2 insertions, 1 deletions
diff --git a/installperl b/installperl
index 8d5573db44..a3657efa63 100755
--- a/installperl
+++ b/installperl
@@ -158,7 +158,8 @@ my @nonxs = grep(!/^Errno$/, split(' ', $Config{'nonxs_ext'}));
find(sub {
if (($File::Find::name =~ m{^ext\b(.*)/([^/]+)\.pm$}) &&
- ! grep { $File::Find::name =~ /^ext\/$_/ } @nonxs)
+ ! grep { (my $dir = $_) =~ s/\//-/g;
+ $File::Find::name =~ /^ext\/$dir/ } @nonxs)
{
my($path, $modname) = ($1,$2);