set result ""
set themax [llength $allwb]
-
for { set i $themax } { [expr $i != 0] } { incr i -1 } {
-
set awb [lindex $allwb [expr $i - 1]]
-
if { $fJava } {
- set addinc [UNC [wokparam -e WOKEntity_javadir ${awb}]]
+ set addinc [wokparam -e WOKEntity_javadir ${awb}]
} else {
- set addinc [UNC [wokparam -e WOKEntity_drvdir ${awb}]]
+ set addinc [wokparam -e WOKEntity_drvdir ${awb}]
}
set result ${addinc}$ps$result
wokparam -s%IncludeDir=$incdir
if { $fJava } {
- set outdir [UNC [wokparam -e WOKEntity_javadir [wokinfo -w]]]
+ set outdir [wokUtils:EASY:stobs2 [wokparam -e WOKEntity_javadir [wokinfo -w]]]
} else {
- set outdir [UNC [wokparam -e WOKEntity_drvdir [wokinfo -w]]]
+ set outdir [wokUtils:EASY:stobs2 [[wokparam -e WOKEntity_drvdir [wokinfo -w]]]
}
wokparam -s%OutDir=$outdir
foreach ID $args {
scan $ID "%\[^:\]:%\[^:\]:%\[^:\]" unit type name
- set infile [UNC [woklocate -p $ID]]
+ set infile [wokUtils:EASY:stobs2 [woklocate -p $ID]]
if { $tcl_platform(platform) == "windows" } {
regsub -all "/" $infile "\\\\\\" infile
msgprint -i -c "WOKStep_JavaCompile:Execute" "Compiling $name"
if { [catch {eval exec [lindex $thecommand 0]} res] } {
-
msgprint -e -c "WOKStep_JavaCompile:Execute" $res
set failed 1
proc WOKStep_TclLibIdep:Execute { unit args } {
msgprint -i -c "WOKStep_TclLibIdep:Execute" "Build ImplDep"
-
set unitname [wokinfo -n $unit]
set file [lindex $args 0]
msgprint -e -c "WOKStep_TclLibIdep:Execute" "Could not locate PACKAGES for unit $unit"
return 1;
} else {
- for_file anud $packfile {
+ foreach anud [wokUtils:FILES:FileToList $packfile] {
set curud [string trim $anud]
if {$curud != ""} {
set alluds($curud) 1
if {[string length $impin] == 0} {
msgprint -i "No ImplDep file for unit $curud"
} else {
- for_file adep $impin {
+ foreach adep [wokUtils:FILES:FileToList $impin] {
set curud [string trim $adep]
set alluds($curud) 1
}
}
}
# remove PACKAGES content from ImplDep
- for_file anud $packfile {
+ foreach anud [wokUtils:FILES:FileToList $packfile] {
set curud [string trim $anud]
if {$curud != ""} {
unset alluds($curud)
}
set impfile [wokinfo -p stadmfile:${unitname}.ImplDep $unit]
set impid [open $impfile "w"]
- for_array_keys anud alluds {
+ foreach anud [array names alluds *] {
puts $impid $anud
}
close $impid