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=68bca047737e7877b271a74a3a9e4a671723fe6b;p=occt-wok.git No comments --- diff --git a/src/WOKTools/WOKTools_Replace.tcl b/src/WOKTools/WOKTools_Replace.tcl index 4fb6b0c..c0ace60 100755 --- a/src/WOKTools/WOKTools_Replace.tcl +++ b/src/WOKTools/WOKTools_Replace.tcl @@ -50,20 +50,12 @@ proc WOKTools_Replace:Execute { unit args } { regsub -all "/" " $source $target" $replstr TheArgs - if { [file exist $target] } { - set A [catch {eval "wokcmp $TheArgs"} result ] - } else { - set result 0 } - - if { ! $result } { - msgprint -i -c "WOKTools_Replace::Execute" "Copy $source to $target" - if { [file exist $target] && [wokparam -e %Station] != "wnt" } { + msgprint -i -c "WOKTools_Replace::Execute" "Copy $source to $target" + if { [file exist $target] && [wokparam -e %Station] != "wnt" } { eval exec "chmod u+w $target" - } - eval exec "$copycmd $TheArgs" - } else { - msgprint -i -c "WOKTools_Replace::Execute" "No change in $source" } + eval exec "$copycmd $TheArgs" + } return 0; }