From: Nicholas Clark Date: Wed, 23 Jan 2008 08:55:33 +0000 (+0000) Subject: Teach checkcfgvar.pl that : is also a comment character in shell scripts X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2aeed1648166d254ac68525c35b77dec4ba8772;p=p5sagit%2Fp5-mst-13.2.git Teach checkcfgvar.pl that : is also a comment character in shell scripts p4raw-id: //depot/perl@33048 --- diff --git a/Porting/checkcfgvar.pl b/Porting/checkcfgvar.pl index 3531b3c..dd4cbb5 100644 --- a/Porting/checkcfgvar.pl +++ b/Porting/checkcfgvar.pl @@ -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+)='(.*)'"$/;