[52542] trunk/base/src/port1.0/portlint.tcl
jmr at macports.org
jmr at macports.org
Thu Jun 18 10:53:13 PDT 2009
Revision: 52542
http://trac.macports.org/changeset/52542
Author: jmr at macports.org
Date: 2009-06-18 10:53:12 -0700 (Thu, 18 Jun 2009)
Log Message:
-----------
lint: catch 'platform ppc'
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-06-18 15:53:50 UTC (rev 52541)
+++ trunk/base/src/port1.0/portlint.tcl 2009-06-18 17:53:12 UTC (rev 52542)
@@ -239,6 +239,14 @@
lappend local_variants $variantname
}
}
+
+ if {[string match "platform\[ \t\]*" $line]} {
+ regexp {platform\s+(?:\w+\s+(?:\w+\s+)?)?(\w+)} $line -> platform_arch
+ if {$platform_arch == "ppc"} {
+ ui_error "Arch 'ppc' in platform variant on line $lineno should be 'powerpc'"
+ incr errors
+ }
+ }
if {[regexp {(^|\s)configure\s+\{\s*\}} $line]} {
ui_warn "Line $lineno should say \"use_configure no\" instead of declaring an empty configure phase"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090618/5883cea2/attachment-0001.html>
More information about the macports-changes
mailing list