Use proper search for contrib makefiles in vcregress.pl
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 24 Sep 2007 21:42:34 +0000 (21:42 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 24 Sep 2007 21:42:34 +0000 (21:42 +0000)
src/tools/msvc/vcregress.pl

index 0ec34e07a7ddf068f75ad224bc5a1ceda251fa95..6a357a02359e8184d88c5f39bb981a5439a65a72 100644 (file)
@@ -1,7 +1,7 @@
 
 # -*-perl-*- hey - emacs - this is a perl file
 
-# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.2 2007/09/24 21:14:54 adunstan Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/vcregress.pl,v 1.3 2007/09/24 21:42:34 adunstan Exp $
 
 use strict;
 
@@ -188,7 +188,9 @@ sub contribcheck
     my $mstat = 0;
     foreach my $module (glob("*"))
     {
-        next unless -d "$module/sql" && -d "$module/expected" && -f "Makefile";
+        next unless -d "$module/sql" && 
+                       -d "$module/expected" && 
+                       (-f "$module/Makefile" || -f "$module/GNUmakefile");
         chdir $module;
                print "============================================================\n";
         print "Checking $module\n";
@@ -211,7 +213,7 @@ sub fetchTests
 
     my $handle;
     open($handle,"<Makefile")
-      || open($handle,"<GNUMakefile")
+      || open($handle,"<GNUmakefile")
       || die "Could not open Makefile";
     local($/) = undef;
     my $m = <$handle>;