Changeset 39025 for trunk/base/src
- Timestamp:
- 08/06/08 01:36:18 (4 months ago)
- Location:
- trunk/base/src/port1.0
- Files:
-
- 2 modified
-
portlint.tcl (modified) (1 diff)
-
portutil.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portlint.tcl
r39023 r39025 144 144 proc lint_main {args} { 145 145 global UI_PREFIX portname portpath portresourcepath 146 global ports_lint_strict147 if {[info exists ports_lint_strict] && $ports_lint_strict == "yes"} {148 ui_info "$UI_PREFIX strict mode enabled"149 }150 151 146 set portfile ${portpath}/Portfile 152 147 set portdirs [split ${portpath} /] -
trunk/base/src/port1.0/portutil.tcl
r39023 r39025 719 719 proc reinplace {args} { 720 720 set extended 0 721 set quiet 0722 721 while 1 { 723 722 set arg [lindex $args 0] … … 728 727 set extended 1 729 728 } 730 q {731 set quiet 1732 }733 729 - { 734 730 break … … 743 739 } 744 740 if {[llength $args] < 2} { 745 error "reinplace ?- q? ?-E? pattern file ..."741 error "reinplace ?-E? pattern file ..." 746 742 } 747 743 set pattern [lindex $args 0] … … 780 776 781 777 close $tmpfd 782 783 if {![catch {exec cmp -s $file $tmpfile}]} {784 if {!$quiet} {785 ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]"786 } else {787 ui_info "[format "reinplace %1\$s didn't change anything in %2\$s" $pattern $file]"788 }789 }790 778 791 779 set attributes [file attributes $file]

