Re: kbs, one file to rule them all
Rene Zaumseil <[email protected]>
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
Hi,
here is my second try.
The attached file gives you:
rene/kbs.tcl - start script (chmod u+x)
rene/defs.kbs - definition file for packages
rene/sources/tclkit-0.1/ - directory with files to build tclkit
The needed interpreter of the start script will be build on first invocation
in a new directory ./tcl.
All packages are in the defs.kbs file with the following structure.
The structure items match with the new kbs.tcl options.
The file will be sourced on startup.
Package <name>-<version> {
Source <srcname> fetch|cvs|svn ...
Require args
Configure {script}
Make {script}
Test {script}
Clean {script}
Install args
}
Useable additional commands:
[Srcdir] - return package source directory (under ./sources/<srcname>)
[Builddir] - return common build directory (default ./build)
[Makedir] - return buildir of current package (./build/<name>-<version>)
[Run args] - execute command
[Run-env args] - run command, environment vars can be set before
[Run-make args] - invoke make command
[Run-strip args] - invoke strip command, not in debug mode
The kbs.tcl file has now some more options (try "./kbs.tcl").
The options are convenient on development.
The end user only needs "./kbs.tcl install <name>"
All configuration variables are now in the kbs.tcl file (see "variable _") and
available in the "script" parts.
The configuration options are in the form "_(-*)".
TODO:
- configure/make in the tclkit-0.1 dir
- option handling in kbs.tcl
- windows/mac test
- additional packages
- build kit from *.vfs dir
I have successfully build the different tclkit version under linux and will
try the same for solaris tomorrow.
rene
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en
-~----------~----~----~----~------~----~------~--~---
rene.tgz
(application/x-tgz, 17.5 KB) - not displayed