diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-02-06 18:28:47 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-02-06 19:05:14 +0000 |
commit | 238a6851e196b122761952f8b2127d8fe9e01658 (patch) | |
tree | fd36f3b360bc61de1459a0300ff917bdc1251aa7 /make_ext.pl | |
parent | 3f2c382a9c5fe8fca68e8087054db654adef51b7 (diff) | |
download | perl-238a6851e196b122761952f8b2127d8fe9e01658.tar.gz |
Cope with new-style ext/Data-Dumper as well as old-style ext/Data/Dumper
Diffstat (limited to 'make_ext.pl')
-rw-r--r-- | make_ext.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl index 2875422b3a..5224f41283 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -176,7 +176,16 @@ if ($is_Win32) { foreach my $spec (@extspec) { my $mname = $spec; $mname =~ s!/!::!g; - my $ext_pathname = "ext/$spec"; + my $ext_pathname; + if (-d "ext/$spec") { + # Old style ext/Data/Dumper/ + $ext_pathname = "ext/$spec"; + } else { + # New style ext/Data-Dumper/ + my $copy = $spec; + $copy =~ tr!/!-!; + $ext_pathname = "ext/$copy"; + } my $up = $ext_pathname; $up =~ s![^/]+!..!g; |