]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Tue, 10 Jul 2001 15:27:28 +0000 (15:27 +0000)
committercas <cas@opencascade.com>
Tue, 10 Jul 2001 15:27:28 +0000 (15:27 +0000)
src/WOKStep/WOKStep_JavaCompile.tcl
src/WOKStep/WOKStep_TclLibIdep.tcl

index a79ff52f5e9d15cb52c68a6bd4fe6580172a6872..ce35bb347ba14d3263f558a10fea4fa4004dce39 100755 (executable)
@@ -42,15 +42,12 @@ proc WOKStep_JavaCompile:ComputeIncludeDir { unit } {
  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
@@ -79,9 +76,9 @@ proc WOKStep_JavaCompile:Execute { theunit args } {
  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
@@ -89,7 +86,7 @@ proc WOKStep_JavaCompile:Execute { theunit args } {
  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
@@ -103,7 +100,6 @@ proc WOKStep_JavaCompile:Execute { theunit args } {
   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
 
index 14090ae3a01d49e13aab3817ef850b3ec94e2c99..9f651437feb44357fb4b69881fb7914582e75882 100755 (executable)
@@ -23,7 +23,6 @@ proc WOKStep_TclLibIdep:HandleInputFile { ID } {
 proc WOKStep_TclLibIdep:Execute { unit args } {
 
     msgprint -i -c "WOKStep_TclLibIdep:Execute" "Build ImplDep"
-
     set unitname [wokinfo -n $unit]
 
     set file [lindex $args 0]
@@ -34,7 +33,7 @@ proc WOKStep_TclLibIdep:Execute { unit args } {
        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
@@ -42,7 +41,7 @@ proc WOKStep_TclLibIdep:Execute { unit args } {
                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
                    }
@@ -50,7 +49,7 @@ proc WOKStep_TclLibIdep:Execute { unit args } {
            }
        }
 # 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)
@@ -58,7 +57,7 @@ proc WOKStep_TclLibIdep:Execute { unit args } {
        }
        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