]> 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/CDLFront/CDLFront_Replace.tcl

index 4f812677d7ab73d5151f938e7c1ca66642aa9c7d..e86644ca1cc7f157986b6411082a8d1a8bbcd8ba 100755 (executable)
@@ -47,20 +47,11 @@ proc CDLFront_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 "CDLFront_Replace::Execute" "Copy $source to $vistarget"
-           if { [file exist $vistarget] && [wokparam -e %Station ] != "wnt" } {
+       msgprint -i -c "CDLFront_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 "CDLFront_Replace::Execute" "No change in $source"
        }
+       eval exec "$copycmd $TheArgs"
 
     return 0;
 }