2
This package provides four commands for the management of the
3
build configuration, i.e. the per-platform information about
4
compilers, linkers, and their commandline options.
6
[para] [emph NOTE] that these commands are irrelevant to anybody just
7
wishing to write a package using critcl for the C parts. They are
8
management commands which are only useful to the
9
[manpage {CriTcl Application}] or similar tools.
11
[list_begin definitions]
13
[comment ---------------------------------------------------------------------]
14
[call [cmd ::critcl::readconfig] [arg path]]
16
This command reads the build configuration file at [arg path] and
17
configures the package using the information for the currently set
20
[comment ---------------------------------------------------------------------]
21
[call [cmd ::critcl::showconfig] [opt [arg chan]]]
23
This command converts the currently active build configuration into a
24
human-readable string and prints the result to the channel [arg chan].
26
If [arg chan] is not present the string is instead returned as the
27
result of the command.
30
As a package it would be IMHO better to have these command only
31
return the necessary internal data, and have the application
32
higher up do the formatting.
36
[comment ---------------------------------------------------------------------]
37
[call [cmd ::critcl::showallconfig] [opt [arg chan]]]
39
This command converts the set of all known build configurations (from
40
the currently active build configuration file last set with
41
[cmd critcl::readconfig]) into a string and print the result to the
44
If [arg chan] is not present the string is instead returned as the
45
result of the command.
49
As a package it would be IMHO better to have these command only
50
return the necessary internal data, and have the application
51
higher up do the formatting.
55
[comment ---------------------------------------------------------------------]
56
[call [cmd ::critcl::chooseconfig] [arg target] [opt [arg nomatcherr]]]
58
This command takes a target identifier and matches it against all
59
known targets, returning a list containing all the matching ones. This
60
search is first done on an exact basis, and then via glob matching. If
61
no known target matches the argument the default is to return an empty
62
list. However, if the boolean [arg nomatcherr] is specified and set,
63
and error will be thrown instead, using [cmd critcl::error].
66
[comment ---------------------------------------------------------------------]
67
[call [cmd ::critcl::setconfig] [arg target]]
69
This command takes a target identifier and configures the package to