Ignore:
Timestamp:
Aug 6, 2008, 8:00:26 AM (10 years ago)
Author:
ryandesign@…
Message:

ChangeLog: consolidate entries for Leopard environment variable issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portutil.tcl

    r38317 r39023  
    719719proc reinplace {args}  {
    720720    set extended 0
     721    set quiet 0
    721722    while 1 {
    722723        set arg [lindex $args 0]
     
    727728                    set extended 1
    728729                }
     730                q {
     731                    set quiet 1
     732                }
    729733                - {
    730734                    break
     
    739743    }
    740744    if {[llength $args] < 2} {
    741         error "reinplace ?-E? pattern file ..."
     745        error "reinplace ?-q? ?-E? pattern file ..."
    742746    }
    743747    set pattern [lindex $args 0]
     
    776780   
    777781        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        }
    778790   
    779791        set attributes [file attributes $file]
Note: See TracChangeset for help on using the changeset viewer.