]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Mon, 23 Jul 2001 18:21:58 +0000 (18:21 +0000)
committercas <cas@opencascade.com>
Mon, 23 Jul 2001 18:21:58 +0000 (18:21 +0000)
src/WOKTclTools/WOKTclTools_Replace.tcl

index 5fa65f70ce5099d8722ef1e414384015564015dc..17b23f02efc7be1b019f9b07539a8e230a0f5cc6 100755 (executable)
@@ -49,20 +49,12 @@ proc WOKTclTools_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 "WOKTclTools_Replace::Execute" "Copy $source to $target"
-           if { [file exist $target] && [wokparam -e %Station $unit] != "wnt" } {
+        msgprint -i -c "WOKTclTools_Replace::Execute" "Copy $source to $target"
+       if { [file exist $target] && [wokparam -e %Station $unit] != "wnt" } {
                eval exec "chmod u+w $target"
-           }
-           eval exec "$copycmd $TheArgs"
-       } else {
-           msgprint -i -c "WOKTclTools_Replace::Execute" "No change in $source"
        }
+       eval exec "$copycmd $TheArgs"
+
     }
     return 0;
 }