-
Notifications
You must be signed in to change notification settings - Fork 24
/
README
103 lines (77 loc) · 3.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
RCS: @(#) $Id: README,v 1.3 2003/11/28 22:42:03 andreas_kupries Exp $
Welcome to the tklib, the Tk Standard Library. This package is
intended to be a collection of Tcl packages that provide utility
functions useful to a large collection of Tcl programmers.
The home web site for this code is
http://core.tcl.tk/tklib/
At this web site, you will find mailing lists, web forums, databases
for bug reports and feature requests, the CVS repository (browsable on
the web, or read-only accessible via CVS ), and more.
Please note that tklib depends on tcllib, the Tcl Standard Library.
This is true for both installation and runtime.
The structure of the tklib source hierarchy is:
tklib
+- modules
+- <module1>
+- <module2>
+- ...
The install hierarchy is:
.../lib/tklib
+- <module1>
+- <module2>
+- ...
There are some base requirements that a module must meet before it
will be added to tklib:
* the module must be a proper Tcl package
* the module must use a namespace for its commands and variables
* the name of the package must be the same as the name of the
namespace
* the module must reside in a subdirectory of the modules directory in
the source hierarchy, and that subdirectory must have the same name
as the package and namespace
* the module must be released under the BSD License, the terms of
which can be found in the toplevel tklib source directory in the file
license.terms
* the module should have both documentation ([*]) and a test suite
(in the form of a group of *.test files in the module directory).
[*] Possible forms: doctools, TMML/XML, nroff (man), or HTML.
The first format is the most prefered as it can be processed with
tools provided by tcllib (See module doctools there). The first
two are prefered in general as they are semantic markup and thus
easier to convert into other formats.
* the module must have either documentation or a test suite. It can
not have neither.
* the module should adhere to Tcl coding standards
When adding a module to tklib, be sure to add it to the files listed below.
* support/installation/modules.tcl
contains a table listing all modules to be installed, modules
excluded, and names the actions to be taken during installation
of each module. Add a line to this table naming your module and
its actions.
Three actions have to be specified, for the package itself, its
documentation, and the examples demonstrating it.
The _null action can be used everywhere and signals that there is
nothing to do. Although it is possible to use it for the package
action it does make no sense there, as that means that no package
code is installed.
Other package actions are _tcl, _tci, and _text. The first causes
the installer to copy all .tcl files from the source directory for
the module into the appropriate module directory. _tci does all that
and also expects a tclIndex file to copy. _tex is like _tcl, however
it also copies all .tex files found in the source directory for the
module.
There is currently only one true documentation action. This action
is _doc. It converts all documentation in doctools format into the
format chosen by the user for installation and copies the result
into the appropriate directory.
There is currently one true action for examples, _exa. It copies all
files in the source directory for examples into the directory chosen
by the user as destination for examples.
Each module source directory should have no subdirectories (other than
the CVS directory), and should contain the following files:
* source code *.tcl
* package index pkgIndex.tcl
* tests *.test
* documentation *.man (doctools, prefered), *.n, *.xml
If you do not follow this directory structure, the tklib Makefile
will fail to locate the files from the new module.