Ticket #15514: reinplace-warning7.diff
File reinplace-warning7.diff, 1.3 KB (added by tenomoto (Takeshi Enomoto), 12 years ago) |
---|
-
src/port1.0/portutil.tcl
918 918 global env worksrcpath 919 919 set extended 0 920 920 set suppress 0 921 set quiet 0 921 922 set oldlocale_exists 0 922 923 set oldlocale "" 923 924 set locale "" … … 941 942 n { 942 943 set suppress 1 943 944 } 945 q { 946 set quiet 1 947 } 944 948 W { 945 949 set dir [lindex $args 0] 946 950 set args [lrange $args 1 end] … … 957 961 } 958 962 } 959 963 if {[llength $args] < 2} { 960 error "reinplace ?-E? ?-n? ?- W dir? pattern file ..."964 error "reinplace ?-E? ?-n? ?-q? ?-W dir? pattern file ..." 961 965 } 962 966 set pattern [lindex $args 0] 963 967 set files [lrange $args 1 end] … … 1020 1024 } 1021 1025 close $tmpfd 1022 1026 1027 if {![catch {exec cmp -s $file $tmfile}]} { 1028 if {!$quiet} { 1029 ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]" 1030 } 1031 } 1032 1023 1033 set attributes [file attributes $file] 1024 1034 # start gsoc08-privileges 1025 1035 chownAsRoot $file