]> 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/IDLFront/IDLFront_Replace.tcl

index fbe0c2c629b47bb42a06d924ac4e08d7811dd43b..be853c7b8e8666d1301d7c87c832796f636fd93a 100755 (executable)
@@ -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;
 }