Re: kitgen with packages - KBS
"rene" <[email protected]>
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
now the package build test,
> Now kbs should be able to build various extensions. It has rules to
> fetch the source code via http::geturl or cvs or svn, but kbs will
> not download anything if the proper directory is already present
> in ../../sources/ (at the kitgen top level, that is).
>
> Try this, for example:
> ./tclkit-cli ../../kbs.tcl build Itcl
>
At first two changes in "kbs.tcl":
old:
cd [file dirname [info nameofexe]]
new (may be this get better):
cd [file dirname [info nameofexe]]/../..
old:
proc kbs::make {} {
foreach f [lsort -dict [glob -directory ../../extdefs -tails
*.kbs]] {
new (no extra build target necessary):
proc kbs::make {{pattern *}} {
foreach f [lsort -dict [glob -directory ../../extdefs -tails
$pattern.kbs]] {
Now the build. No need to build tclkits before.
make base
8.5/base-std/build/bin/tclsh8.5 make ?extension-pattern?
To collect sources for offline work I use the following proc:
proc kbs::sources {{pattern *}} {
proc ::config::Build {path} {puts $path}
proc ::config::Result {path} {puts $path}
proc ::config::Unglob {match} {}
make $pattern
}
I will try all the stuff next week under SunOS and can make more tests
under IRIX in week 22.
HTH
rene