]> 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/WOKUtils/WOKUtils_Replace.tcl

index 8263ffe268e87c680468fd62f7f8f888326e05c5..d3768f47c950bf97b503074b4980b31d0f94545f 100755 (executable)
@@ -62,20 +62,11 @@ proc WOKUtils_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 "WOKUtils_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 "WOKUtils_Replace::Execute" "No change in $source"
+       msgprint -i -c "WOKUtils_Replace::Execute" "Copy $source to $target"
+       if { [file exist $target] && ( [wokparam -e %Station ] != "wnt" ) } {
+           eval exec "chmod u+w $target"
        }
+       eval exec "$copycmd $TheArgs"
     }
     return 0;
 }