home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
config_vb.tcl
< prev
next >
Wrap
Text File
|
1997-11-07
|
2KB
|
65 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)config_vb.tcl /main/titanic/7
# Author:
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)config_vb.tcl /main/titanic/7 7 Nov 1997 Copyright 1996 Cayenne Software Inc.
source [m4_path_name tcl cginit.tcl]
require wmt_util.tcl
require machdep.tcl
proc m4copydir {dir} {
set save_dir [pwd]
set subdir [location config $dir]
if [catch {set cddir [m4_path_name $subdir ClassSet.cls]}] {
return
}
set tempdir [path_name directory $cddir]
cd $tempdir
set files [glob -nocomplain *]
puts "Copying from $tempdir..."
foreach file $files {
set toFile [fstorage::copyFile $file phase $dir $file]
if {$toFile != ""} {
puts " $toFile"
} else {
puts " $file *NOT COPIED*"
}
}
cd $save_dir
}
proc makeCfgSystem {} {
set cc [ClientContext::global]
set configV [$cc currentConfig]
set phaseV [$cc currentPhase]
set sys "vb_library"
set sysV [$phaseV findSystemVersion $sys "system"]
if {[$sysV isNil]} {
puts "Creating System '$sys'."
set sysV [$phaseV createSystemVersion $sys "cl" "system" $configV]
$sysV freeze "Configure Visual Basic"
} else {
if {[$sysV status] == "working"} {
$sysV freeze "Configure Visual Basic"
}
}
}
set cc [ClientContext::global]
if {[[[$cc currentPhase] phase] type] != "ObjectDesign"} {
m4copydir src
makeCfgSystem
} else {
require VisualBasicGUI.tcl
}