From: Nicholas Clark Date: Fri, 25 Sep 2009 18:41:14 +0000 (+0100) Subject: Stop empty top-level directories in ext/ being treated as old-style extensions. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=914d9b2e2d3693a8dcc1cd21e5c25efc641f76b6;p=p5sagit%2Fp5-mst-13.2.git 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. --- diff --git a/make_ext.pl b/make_ext.pl index cfb3cd7..2ff74d8 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 {