This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Assimilate HTML-Parser and HTML-Tagset. HTML-Parser is now a prereq
[perl5.git] / Porting / checkcfgvar.pl
index 6f4e7d0..dd4cbb5 100644 (file)
@@ -18,6 +18,8 @@ my %MASTER_CFG;
 my @CFG = (
           # This list contains both 5.8.x and 5.9.x files,
           # we check from MANIFEST whether they are expected to be present.
+          # We can't base our check on $], because that's the version of the
+          # perl that we are running, not the version of the source tree.
           "Cross/config.sh-arm-linux",
           "epoc/config.sh",
           "NetWare/config.wc",
@@ -31,8 +33,8 @@ my @CFG = (
           "win32/config.vc",
           "win32/config.vc64",
           "win32/config.ce",
-          "wince/config.ce",
           "configure.com",
+          "Porting/config.sh",
          );
 
 sub read_file {
@@ -85,7 +87,7 @@ for my $cfg (@CFG) {
     my %cfg;
     read_file($cfg,
              sub {
-                 return if /^\#/ || /^\s*$/;
+                 return if /^\#/ || /^\s*$/ || /^\:/;
                  if ($cfg eq 'configure.com') {
                      s/(\s*!.*|\s*)$//; # remove trailing comments or whitespace
                      return if ! /^\$\s+WC "(\w+)='(.*)'"$/;