home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
getsrc.tcl
< prev
next >
Wrap
Text File
|
1996-08-12
|
2KB
|
46 lines
# ~/icase/get_export_source.tcl
#
# Created: 17 march 1996
# Updated: not yet
# Version: 1.0
# Purpose: To retriev the best export source tcl script file
#
source "[m4_path_name tcl libocl.tcl]"
# --------------------------------
# to get the global variable win95
# --------------------------------
require platform.tcl
# -------------------------------------------------------------------
# source the export source without executing the procedure exportTool
# -------------------------------------------------------------------
set home "[lindex [glob ~] 0]"
set export_source ""
catch { set export_source [m4_path_name tcl et.tcl] } err
if { "$err" != "" } {
set export_source [path_name concat [path_name concat $home icase] et.tcl]
if { ! [file exists $export_source] } {
set export_source [path_name concat [m4_var get M4_home] contrib]
set export_source [path_name concat $export_source unsupported]
set export_source [path_name concat $export_source exportdiag]
set export_source [path_name concat $export_source et.tcl]
if { $win95 && ! [file exists $export_source] } {
set export_source [path_name concat ~heli tools]
set export_source [path_name concat $export_source tcl]
set export_source [path_name concat $export_source et.tcl]
if { ! [file exists $export_source] } {
set export_source [m4_path_name et.tcl]
}
puts "Warning, using source from $export_source"
}
}
}
set et_dont_run ""
source $export_source