Skip to content
Permalink
Browse files

Output canonical-case port names

  • Loading branch information
jmroot committed Mar 20, 2018
1 parent 9135194 commit 387064c27c616757509ec8462b72cfe512b228ad
Showing with 5 additions and 1 deletion.
  1. +5 −1 tools/sort-with-subports.tcl
@@ -65,6 +65,7 @@ if {[catch {mportinit "" "" ""} result]} {
}

array set portdepinfo {}
array set canonicalnames {}
set todo [list]
if {[lindex $argv 0] eq "-"} {
while {[gets stdin line] >= 0} {
@@ -116,6 +117,9 @@ while {$todo ne {}} {
}
}
set portdepinfo($p) $deplist
if {[info exists outputports($p)]} {
set canonicalnames($p) $portinfo(name)
}
}
array unset portinfo
}
@@ -129,6 +133,6 @@ foreach portname [lsort -dictionary [array names portdepinfo]] {

foreach portname $portlist {
if {[info exists outputports($portname)]} {
puts $portname
puts $canonicalnames($portname)
}
}

0 comments on commit 387064c

Please sign in to comment.
You can’t perform that action at this time.