Stop empty top-level directories in ext/ being treated as old-style extensions.
authorNicholas Clark <nick@ccl4.org>
Fri, 25 Sep 2009 18:41:14 +0000 (19:41 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 25 Sep 2009 18:41:14 +0000 (19:41 +0100)
This is a work-around to cope with smokers that are not deleting directories
that have been moved.

make_ext.pl

index cfb3cd7..2ff74d8 100644 (file)
@@ -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 {