From: Craig A. Berry Date: Fri, 24 Nov 2006 04:45:30 +0000 (+0000) Subject: Even better configure.com handling for checkcfgvar.pl X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c526aa6337ee17172ed69ab8b1da40986e578124;p=p5sagit%2Fp5-mst-13.2.git Even better configure.com handling for checkcfgvar.pl p4raw-id: //depot/perl@29370 --- diff --git a/Porting/checkcfgvar.pl b/Porting/checkcfgvar.pl index 955120e..fc0f8c6 100644 --- a/Porting/checkcfgvar.pl +++ b/Porting/checkcfgvar.pl @@ -88,7 +88,7 @@ for my $cfg (@CFG) { sub { return if /^\#/ || /^\s*$/; if ($cfg eq 'configure.com') { - s/\s*!.*$//; # remove trailing comments + s/(\s*!.*|\s*)$//; # remove trailing comments or whitespace return if ! /^\$\s+WC "(\w+)='(.*)'"$/; } # foo='bar'