1pkg::create(n)               Tcl Built-In Commands              pkg::create(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       pkg::create - Construct an appropriate 'package ifneeded' command for a
9       given package specification
10

SYNOPSIS

12       ::pkg::create -name packageName -version  packageVersion  ?-load  file‐
13       spec? ... ?-source filespec? ...
14______________________________________________________________________________
15
16

DESCRIPTION

18       ::pkg::create  is  a utility procedure that is part of the standard Tcl
19       library.  It is used to create an appropriate package ifneeded  command
20       for  a  given  package  specification.   It  can be used to construct a
21       pkgIndex.tcl file for use with the package mechanism.
22
23

OPTIONS

25       The parameters supported are:
26
27       -name packageName
28              This parameter  specifies  the  name  of  the  package.   It  is
29              required.
30
31       -version packageVersion
32              This  parameter  specifies  the  version  of the package.  It is
33              required.
34
35       -load filespec
36              This parameter specifies a binary library that  must  be  loaded
37              with  the  load  command.  filespec is a list with two elements.
38              The first element is the name of the file to load.  The  second,
39              optional  element is a list of commands supplied by loading that
40              file.   If  the  list  of  procedures  is  empty   or   omitted,
41              ::pkg::create  will  set  up the library for direct loading (see
42              pkg_mkIndex).  Any number of -load parameters may be specified.
43
44       -source filespec
45              This parameter is similar to the -load parameter, except that it
46              specifies a Tcl library that must be loaded with the source com‐
47              mand.  Any number of -source parameters may be specified.
48
49       At least one -load or -source parameter must be given.
50

SEE ALSO

52       package(n)
53

KEYWORDS

55       auto-load, index, package, version
56
57
58
59Tcl                                   8.3                       pkg::create(n)
Impressum