packagens.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" Copyright (c) 1998-2000 by Scriptics Corporation.
- '" All rights reserved.
- '"
- '" RCS: @(#) $Id: packagens.n,v 1.4 2002/07/01 18:24:39 jenglish Exp $
- '"
- .so man.macros
- .TH pkg::create n 8.3 Tcl "Tcl Built-In Commands"
- .BS
- '" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- pkg::create - Construct an appropriate fBpackage ifneededfR
- command for a given package specification
- .SH SYNOPSIS
- fB::pkg::create fI-name packageNamefR fI-version packageVersionfR ?fI-load filespecfR? ... ?fI-source filespecfR? ...
- .BE
- .SH DESCRIPTION
- .PP
- fB::pkg::createfR is a utility procedure that is part of the standard Tcl
- library. It is used to create an appropriate fBpackage ifneededfR
- command for a given package specification. It can be used to construct a
- fBpkgIndex.tclfR file for use with the fBpackagefR mechanism.
- .SH OPTIONS
- The parameters supported are:
- .TP
- fB-namefR fIpackageNamefR
- This parameter specifies the name of the package. It is required.
- .TP
- fB-versionfR fIpackageVersionfR
- This parameter specifies the version of the package. It is required.
- .TP
- fB-loadfR fIfilespecfR
- This parameter specifies a binary library that must be loaded with the
- fBloadfR command. fIfilespecfR 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, fB::pkg::createfR will
- set up the library for direct loading (see fBpkg_mkIndexfR). Any
- number of fB-loadfR parameters may be specified.
- .TP
- fB-sourcefR fIfilespecfR
- This parameter is similar to the fB-loadfR parameter, except that it
- specifies a Tcl library that must be loaded with the
- fBsourcefR command. Any number of fB-sourcefR parameters may be
- specified.
- .PP
- At least one fB-loadfR or fB-sourcefR parameter must be given.
- .SH "SEE ALSO"
- package(n)
- .SH KEYWORDS
- auto-load, index, package, version