1
[subsection {Building And Installing A Package}]
3
Here we assume that you know the basics of how to build a package.
4
If not, please read section [sectref {Building A Package}] first.
8
By default [cmd critcl] will place all newly-made packages in the
9
subdirectory [file lib] of the current working directory.
17
will create the directory [file lib/foo] which contains all the files
22
When this behaviour is unwanted the option [option -libdir] is available,
23
allowing the explicit specification of the destination location to use.
26
critcl -pkg -libdir /path/to/packages foo
29
A common use might be to not only build the package in question, but
30
to also immediately install it directly in the path where the user's
31
[cmd tclsh] will be able to find it.
33
Assuming, for example, that the [cmd tclsh] in question is installed
34
at [file /path/to/bin/tclsh], with the packages searched for under
35
[file /path/to/lib] ([lb][cmd {info library}][rb]), the command
38
critcl -pkg -libdir /path/to/lib foo
41
will build the package and place it in the directory
42
[file /path/to/lib/foo].