From: cas Date: Mon, 23 Jul 2001 18:21:58 +0000 (+0000) Subject: No comments X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c1089dd994910bd07a2c8848ccce927e2249ad55;p=occt-wok.git No comments --- diff --git a/src/IDLFront/IDLFront_Replace.tcl b/src/IDLFront/IDLFront_Replace.tcl index fbe0c2c..be853c7 100755 --- a/src/IDLFront/IDLFront_Replace.tcl +++ b/src/IDLFront/IDLFront_Replace.tcl @@ -47,20 +47,12 @@ proc IDLFront_Replace:Execute { unit args } { msgprint -i -c "$source " regsub -all "/" " $source $vistarget" $replstr TheArgs - if { [file exist $vistarget] } { - set A [catch {eval "wokcmp $TheArgs"} result ] - } else { - set result 0 } - - if { ! $result } { - msgprint -i -c "IDLFront_Replace::Execute" "Copy $source to $vistarget" - if { [file exist $vistarget] && [wokparam -e %Station ] != "wnt" } { + + msgprint -i -c "IDLFront_Replace::Execute" "Copy $source to $vistarget" + if { [file exist $vistarget] && [wokparam -e %Station ] != "wnt" } { eval exec "chmod u+w $vistarget" - } - eval exec "$copycmd $TheArgs" - } else { - msgprint -i -c "IDLFront_Replace::Execute" "No change in $source" } + eval exec "$copycmd $TheArgs" return 0; }