@end;
@template DEFAULT_Stations ( %Entity ) is
-$sun sil lin hp aix wnt mac bsd\^
+$sun sil lin hp aix wnt\^
@end;
@template DEFAULT_DBMSystems ( %Entity ) is
$%Entity_Home\^
@end;
-@template DEFAULT_DFLT_mac ( %Entity_Home ) is
-$%Entity_Home\^
-@end;
-
-@template DEFAULT_DFLT_bsd ( %Entity_Home ) is
-$%Entity_Home\^
-@end;
-
@template DEFAULT_WOKVersion ( %WOK_VERSION ) is
$%WOK_VERSION\^
@end;
;#
global env tcl_platform
-if { "$tcl_platform(platform)" == "unix" } {
- if { "$tcl_platform(os)" == "HP-UX" } {
- set ldpathvar SHLIB_PATH
- } elseif { "$tcl_platform(os)" == "Darwin" } {
- set ldpathvar DYLD_LIBRARY_PATH
- } else {
- set ldpathvar LD_LIBRARY_PATH
- }
- if { ![info exists env($ldpathvar)] } {
- puts stderr "You must set $ldpathvar to point where you have installed Wok"
- exit
- }
+if { "$tcl_platform(platform)" == "unix" && ![info exists env(LD_LIBRARY_PATH)] } {
+ puts stderr "You must set LD_LIBRARY_PATH to point where you have installed Wok"
+ exit
}
if { "$tcl_platform(platform)" == "windows" && ![info exists env(Path)] } {
if { "$tcl_platform(platform)" == "unix" } {
set sprtor ":"
set fmtshr "lib%s.so"
- set wrk [split $env($ldpathvar) $sprtor]
- if { $tcl_platform(os) == "HP-UX" } { set fmtshr "lib%s.sl" }
- if { $tcl_platform(os) == "Darwin" } { set fmtshr "lib%s.dylib" }
- set msgnotfound "Please check your variable $ldpathvar"
+ set wrk [split $env(LD_LIBRARY_PATH) $sprtor]
+ if { $tcl_platform(os) == "HP-UX" } { set fmtshr "lib%s.sl" }
+ set msgnotfound "Please check your variable LD_LIBRARY_PATH"
}
if { "$tcl_platform(platform)" == "windows" } {
set sprtor ";"
setenv TCLLIBPATH "${TCLLIB}/itcl ${TCLLIB} ${WOKHOME}/lib ${WOKHOME}/lib/${WOKSTATION}"
setenv TRAP_FPE "UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT"
breaksw
- case HP-UX:
- setenv WOKSTATION "hp"
- setenv SHLIB_PATH "${TCLLIB}:${WOKHOME}/lib/${WOKSTATION}:${SHLIB_PATH}:"
- breaksw
- case Darwin:
- setenv WOKSTATION "mac"
- setenv DYLD_LIBRARY_PATH "${TCLLIB}:${WOKHOME}/lib/${WOKSTATION}:${DYLD_LIBRARY_PATH}:"
- breaksw
- case FreeBSD:
- setenv WOKSTATION "bsd"
- breaksw
default:
echo "Error : unknown platform"
breaksw
set OS_PLATFORM="sun"
else if ( $OS_NAME == "Linux" ) then
set OS_PLATFORM="lin"
-else if ( $OS_NAME == "HP-UX" ) then
- set OS_PLATFORM="hp"
-else if ( $OS_NAME == "Darwin" ) then
- set OS_PLATFORM="mac"
-else if ( $OS_NAME == "FreeBSD" ) then
- set OS_PLATFORM="bsd"
endif
setenv WOKHOME ${CASROOT}/../wok