Teach checkcfgvar.pl that : is also a comment character in shell scripts
authorNicholas Clark <nick@ccl4.org>
Wed, 23 Jan 2008 08:55:33 +0000 (08:55 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 23 Jan 2008 08:55:33 +0000 (08:55 +0000)
p4raw-id: //depot/perl@33048

Porting/checkcfgvar.pl

index 3531b3c..dd4cbb5 100644 (file)
@@ -87,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+)='(.*)'"$/;