summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-25 19:41:14 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-25 19:41:14 +0100
commit914d9b2e2d3693a8dcc1cd21e5c25efc641f76b6 (patch)
tree31fd597ecabf5a78f5794d03a8ceb5395503f72c /make_ext.pl
parent9afc198b1f7ba77013e0892ee06251c347ccb45a (diff)
downloadperl-914d9b2e2d3693a8dcc1cd21e5c25efc641f76b6.tar.gz
Stop empty top-level directories in ext/ being treated as old-style extensions.
This is a work-around to cope with smokers that are not deleting directories that have been moved.
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl
index cfb3cd7b59..2ff74d8b9e 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -234,7 +234,10 @@ foreach my $spec (@extspec) {
my $mname = $spec;
$mname =~ s!/!::!g;
my $ext_pathname;
- if (-d "ext/$spec") {
+ if (-d "ext/$spec"
+ # Temporary hack to cope with smokers that are not clearing directories:
+ && $spec =~ m!/!
+ ) {
# Old style ext/Data/Dumper/
$ext_pathname = "ext/$spec";
} else {