NAME
pkg::create - Construct an appropriate ppaacckkaaggee iiffnneeeeddeedd command for a
given package specificationSYNOPSIS
::::ppkkgg::::ccrreeaattee -name packageName -version packageVersion ?-load file-
spec? ... ?-source filespec? ...
DESCRIPTION
::::ppkkgg::::ccrreeaattee is a utility procedure that is part of the standard Tcl library. It is used to create an appropriate ppaacckkaaggee iiffnneeeeddeedd command for a given package specification. It can be used to construct a ppkkggIInnddeexx..ttccll file for use with the ppaacckkaaggee mechanism. OOPPTTIIOONNSS The parameters supported are:-nnaammee packageName
This parameter specifies the name of the package. It is required.-vveerrssiioonn packageVersion
This parameter specifies the version of the package. It is required.-llooaadd filespec
This parameter specifies a binary library that must be loaded with the llooaadd command. filespec is a list with two elements. The first element is the name of the file to load. The second, optional element is a list of commands supplied by loading that file. If the list of procedures is empty or omitted, ::::ppkkgg::::ccrreeaattee will set up the library for direct loading (seeppkkggmmkkIInnddeexx). Any number of -llooaadd parameters may be specified.
-ssoouurrccee filespec
This parameter is similar to the -llooaadd parameter, except that it
specifies a Tcl library that must be loaded with the ssoouurrccee com-
mand. Any number of -ssoouurrccee parameters may be specified.
At least one -llooaadd or -ssoouurrccee parameter must be given.
SEE ALSO
package(n) KKEEYYWWOORRDDSSauto-load, index, package, version
Tcl 8.3 pkg::create(n)