home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
clibcayn.tcl
< prev
next >
Wrap
Text File
|
1997-11-27
|
2KB
|
59 lines
#---------------------------------------------------------------------------
#
# Copyright (c) 1993-1997 by Cayenne Software, Inc.
#
# This software is furnished under a license and may be used only in
# accordance with the terms of such license and with the inclusion of
# the above copyright notice. This software or any other copies thereof
# may not be provided or otherwise made available to any other person.
# No title to and ownership of the software is hereby transferred.
#
# The information in this software is subject to change without notice
# and should not be construed as a commitment by Cayenne Software, Inc.
#
#---------------------------------------------------------------------------
#
# File : @(#)clibcayn.tcl /main/titanic/5 11 Jun 1997
# Author : revr
# Description : script for C++ classlib compilation
#
#---------------------------------------------------------------------------
#
source [m4_path_name tcl cginit.tcl]
require "cpplibutl.tcl"
require "fstorage.tcl"
proc makeLib {dir} {
set makeCommand ""
set mh [ModuleHandler new]
$mh setCurrentContext
foreach module [$mh moduleSpecSet] {
if {[$module type] == "DevelEnv"} {
set makeCommand [$module getProperty "makeCommand"]
}
}
if {$makeCommand == ""} {
puts "Unable to make library"
} else {
set save_dir [pwd]
set dest [fstorage::getFsPath config $dir]
puts "Building library (in $dest)"
if [catch {cd $dest} msg] {
puts "Unable to change directory to $dest."
if {![BasicFS::exists $dest]} {
puts "Please run Configure C++ first."
}
return
}
if [file exists "Makefile"] {
system "$makeCommand install"
} else {
puts "Please run Configure C++ first."
}
cd $save_dir
}
}
makeLib src