From c1089dd994910bd07a2c8848ccce927e2249ad55 Mon Sep 17 00:00:00 2001 From: cas Date: Mon, 23 Jul 2001 18:21:58 +0000 Subject: [PATCH] No comments --- src/IDLFront/IDLFront_Replace.tcl | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/IDLFront/IDLFront_Replace.tcl b/src/IDLFront/IDLFront_Replace.tcl index fbe0c2c..be853c7 100755 --- a/src/IDLFront/IDLFront_Replace.tcl +++ b/src/IDLFront/IDLFront_Replace.tcl @@ -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; } -- 2.39.5