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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
CriTcl versions 3 and later can create TEApot meta-data to be placed into
[file teapot.txt] in a format suitable for use by the
[uri {http://docs.activestate.com/activetcl/8.5/tpm/toc.html} {TEApot tools}].
[para]
In version 2, some meta data support was already present through
[cmd ::critcl::license], but this was only used to generate [file license.txt].
[list_begin definitions]
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::license] [arg author] [opt [arg text]...]]
Ignored in "compile & run" mode.
[para]
In "generate package" mode provides information about the author of the
package and the license for the package.
[para]
[arg text] arguments are concatenated to form the text of the license, which is
written to [file license.terms] in the same directory as [file pkgIndex.tcl].
If no [arg text] is provided the license is read from [file license.terms]
in the same directory as the [vset critcl_script].
[para] This information takes precedence over any information specified through
the generic API [cmd ::critcl::meta]. It is additionally placed
into the meta data file [file teapot.txt] under the keys [term as::author] and
[term license].
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::summary] [arg text]]
Ignored in "compile & run" mode.
[para]
In "generate package" mode places a short, preferably one-line description of
the package into the meta data file [file teapot.txt] under the key
[term summary]. This information takes precedence over information specified
through the generic API [cmd ::critcl::meta].
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::description] [arg text]]
Ignored in "compile & run" mode.
[para]
In "generate package" mode places a longer description of the package into the
meta data file [file teapot.txt], under the key [term description]. The data
specified by this command takes precedence over any information specified
through the generic API [cmd ::critcl::meta].
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::subject] [opt [arg key]...]]
Ignored in "compile & run" mode.
[para]
In "generate package" mode places each [arg key] into the meta data file
[file teapot.txt], under the key [term subject]. This information takes
precedence over any information specified through the generic API
[cmd ::critcl::meta].
[para] Calls to this command are cumulative.
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::meta] [arg key] [opt [arg word]...]]
Provides arbitrary meta data outside of the following reserved keys:
[term as::author],
[term as::build::date],
[term description],
[term license],
[term name],
[term platform],
[term require]
[term subject],
[term summary], and
[term version],
Its behaviour is like [cmd ::critcl::subject] in that it treats all
keys as list of words, with each call providing one or more words for
the key, and multiple calls extending the data for an existing key, if
not reserved.
[para] While it is possible to declare information for one of the
reserved keys with this command such data is ignored when the final
meta data is assembled and written.
[para] Use the commands
[cmd ::critcl::license],
[cmd ::critcl::summary],
[cmd ::critcl::description]
[cmd ::critcl::subject],
[cmd {package require}], and
[cmd {package provide}]
to declare data for the reserved keys.
[para] The information for the reserved keys
[term as::build::date] and
[term platform]
is automatically generated by [package critcl] itself.
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::meta?] [arg key]]
Returns the value in the metadata associated with [arg key].
[para] Used primarily to retrieve the name of the package
from within utility packages having to adapt C code templates to their
environment. For example, [package critcl::class] uses does this.
[comment ---------------------------------------------------------------------]
[call [cmd ::critcl::buildrequirement] [arg script]]
Provides control over the capturing of dependencies declared via
[cmd {package require}]. [arg script] is evaluated and any dependencies
declared within are ignored, i.e. not recorded in the meta data.
[list_end]
|