[50142] trunk/base/src/port1.0/portlint.tcl
jmr at macports.org
jmr at macports.org
Sun Apr 26 07:31:47 PDT 2009
Revision: 50142
http://trac.macports.org/changeset/50142
Author: jmr at macports.org
Date: 2009-04-26 07:31:46 -0700 (Sun, 26 Apr 2009)
Log Message:
-----------
lint: ignore lines that look like comments
Modified Paths:
--------------
trunk/base/src/port1.0/portlint.tcl
Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl 2009-04-26 14:01:55 UTC (rev 50141)
+++ trunk/base/src/port1.0/portlint.tcl 2009-04-26 14:31:46 UTC (rev 50142)
@@ -178,6 +178,12 @@
set require_blank true
set require_after "RCS tag"
}
+
+ # skip the rest for comment lines (not perfectly accurate...)
+ if {[regexp {^\s*#} $line]} {
+ incr lineno
+ continue
+ }
if {[string match "PortSystem*" $line]} {
if {$seen_portsystem} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090426/5a2d4ca7/attachment.html>
More information about the macports-changes
mailing list