kitcap.5
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5 代码 · 共 297 行
5
297 行
.TH kitcap 5.SH Namekitcap \- kit descriptor database for gentape and genra utilities..SH DescriptionThe .PN kitcapfile is a database for kit descriptors containingproduct codes, directories, files, and subsets that make upa product description to be used by .PN gentapes or .PN genra to create distribution media. All fields are separated by colons (:) with a backslash (\\) at the end of a line indicating continuation.Lines starting with a number sign (#) are considered commentsand are ignored. Comment fields with a kitcode descriptionare delimited by an opening number sign (#) and a closing colon (:)..PPThe following.PN kitcapentry examples are for TK50 and MT9 media types:.EXProduct-codeTK | Product Description:directory1:directory2:directory3:\\ SPACE:SPACE:SPACE:INSTCTRL:subset1:subset2:subset3:subset4:subset5Product-codeMT | Product Description:directory1:directory2:directory3:\\ SPACE:SPACE:SPACE:INSTCTRL:subset1:subset2:subset3:subset4:subset5:\\ %%2:\\ subset6:subset7:subset8:subset9:subset10.EE.PPThe following parts make up the .PN kitcap descriptor for magnetic tape media:.TPProduct-code .brThis is an arbitrary name made up of letters and/ornumbers unique to the product that it describes.Typical codes include a product identifier and a version identifier, as indicated in the previous examples..TPMedia-code (TK or MT).brThe media-code is a 2 letter reference that describesthe type of media the files will be written to. Themedia code must be either TK for TK50 orMT for 9-track magnetic tape devices. During runtime, the .PN gentapes utility probes the device to bewritten to and determines if it is a TK50- or MT9-typedevice. It then appends either TK or MT to the kitcodegiven on the command line and searches for the kitcode(product-code/media-code) in the kitcap file..TPProduct Description.brThis field is a description of the software productthat is being created by the .PN gentapes utility and replaces the NAME field in the .PN .ctrl file of all thesubsets that make up a product. This is an optionalfield for magnetic tape media..TPDirectories.brThe magnetic tape media production utility has the ability of producing multi-product tapes. That is,it can take subsets from different products that arebased in different directories and merge them togetherto form a third product, which is a combination ofthe original products. Directory entries provide the fullpath locations of where the subsets that are to be puton media will be stored. There must be at least one directoryentry for each kitcap descriptor..TPSPACE.brThe SPACE file is a place holder for tape records composed of 1k ofNULL characters. Three SPACE files are used as dummy files to ensurecompatibility with ULTRIX operating system kits..TPINSTCTRL.brThe INSTCTRL image contains \f(CWsetld\fR control information..TPSubsets.brThis field provides a list of subsets or files that are to be eitherwritten to the magnetic tape media or verified from themagnetic tape media. Each subset listed must be storedin one of the directories listed in that particular kitcapdescriptor. If a file or subset is stored in a subdirectoryof one of the directories listed in the kitcapdescriptor, it is possible to include that sub-path withthe subset/filename entry instead of listing the entirepath/subpath as another directory listing. For example,a directory listed in the kitcap descriptor underthe rules given in the Directories section is listed as:.EX/KITS/MYPRODUCT/001.EEA particular subset or file that a user wouldlike to include on the media is stored in:.EX/KITS/MYPRODUCT/001/subdirectory/subset.EESince the subdirectory/subset specification is part of the .PN /KITS/MYPRODUCT/001 directory tree, it is not necessary to include the full path .PN /KITS/MYPRODUCT/001/subdirectory in the directory listing. An alternative is to include the subdirectory path with the subset name in the subset list.For example:.EXMY-PROD-001 | This is a good product:\\ /KITS/MYPRODUCT/001:SPACE:SPACE:SPACE:\\ INSTCTRL:subset1:subset2:subdirectory/subset3:subset4.EE.TPVolume identifier (MT9 media only).brThe volume identifier is optional.Multi-tape support is available for products that havesubsets or files that take up more room than is availableby a single 9-track magnetic tape. If the subset listresults in an end-of-tape condition, the subset list canbe split into any number of multi-volume sets by placing.PN %%n (where n is the volume number of the next tape)anywhere appropriate in the subset list.The subsets listed between the volume identifiers must fit on a single piece of media.By default, the subset list located directlyafter the directory list is always considered the first volume.Therefore, a volume identifier for the first volume ina multi-volume kit descriptor is not necessary..PPThe following example shows a.PN kitcapentry for disks:.EXProduct-codeRA:partition:\\ dd=/:Product_Description:\\ directory1:directory2:directory3:\\ instctrl:subset1:subset2:subset3:subset4:subset5:\\ dd=SUB/DIR:Product_Description:\\ instctrl:directory1:directory2:directory3:\\ subset1:subset2:subset3:subset4:subset5.EE.PPThe following parts make up the kitcap descriptor for diskmedia:.TPProduct-code.brSame as for magnetic tape..TPMedia-code.brThe media code for disks is RA and is appended to theproduct-code provided by the user at run time, by the.PN genra utility..TPDisk Partition .brThis field is the partition where you want the softwarewritten to on the disk. .TPdd=.brThis field tells the .PN genra utility what directory youwant the subsets written to on the disk media that isbeing created. The contraction .PN ddcan be thought of as the ``destination directory'' for the subsets. This field is required and allows a hierarchial structure for those who want to put multiple products on the samedisk, or want to separate parts of one product into different areas on the disk. .PPTypically, a disk is mounted by the.PN genra utility onto a temporary mount point under.PN /usr/tmpThis location becomes the disks root directory. If a user wants to have only one directory for anentire product, a valid entry would be dd=/. This entry tells the .PN genra utility to write all the following subsets under the mount point. .PPIn the disk kitcap descriptor example given previously, the first five subsets arebeing written to the mount point, or root directory, forthe disk media being made. Then a new directory on thedisk media is made, .PN /mnt_point/SUB/DIR ,and the next five subsets are written into that directory on the diskmedia. .PPIt is important to note that the top-level directory of the media disk is always considered the mountpoint used by the .PN genra script and is referenced by dd=/.Any subdirectories listed as destination directories are created starting from the mount point andmust be referenced in full. For instance, in the previous example,if the user wanted to put some othersubsets in a subdirectory of DIR, the entry would be dd=SUB/DIR/SUBSUBDIR. Note that each newdestination directory requires a product description..TPProduct Description.brThis field is similar to the one defined under the magnetic tape description. However, in the case of diskmedia there are 2 important differences. The product descriptionis a required field, and all words inthe description must be connected with underscores (_).The .PN genra script removes the underscores at run time.For example, suppose the desired description was as follows:.EXThis is a good product.EEThe Product Description entry when making disk mediawould become:.EXThis_is_a_good_product.EE.TPDirectories.brSame as for magnetic tape..TPinstctrl.brA directory containing the same information as INSTCTRL for magnetic tape..TPSubsets.brSame as for magnetic tape..SH ExamplesTK50 and MT9 (single-volume tape)kitcap description .EXMYPRODUCT400 | MYPRODUCT software version 4:\\ :# directory listing :\\ /directory1:/directory2:/directory3:\\ SPACE:SPACE:SPACE:INSTCTRL:\\ :# subset listing :\\ subset1:subset2:subset3:subset4:subset5.EE.PPMT9 kitcap description (multi-volume tape).EXMYPRODUCT400 | MYPRODUCT software version 4:\\ /directory1:/directory2:/directory3:\\ SPACE:SPACE:SPACE:INSTCTRL:\\ subset1:subset2:subset3:subset4:subset5:\\ :# Volume 2 :\\ %%2:\\ subset6:subset7:subset8:subset9:subset10.EE.PPRA60 kitcap description (single product).EXMYPRODUCT400:c:\\ dd=/:MYPRODUCT_software_version_4:\\ /directory1:/directory2:/directory3:\\ instctrl:subset1:subset2:subset3:subset4:subset5.EE.PPRA60 kitcap description (multiple product).EXMYPRODUCT400:c:\\ dd=MYPRODUCT/BASE:\\ MYPRODUCT_software_version_4_base_subsets:\\ /directory1:/directory2:/directory3:\\ instctrl:subset1:subset2:subset3:subset4:subset5:\\ dd=MYPRODUCT/NONBASE:\\ MYPRODUCT_software_version_4_nonbase_subsets:\\ /directory1:/directory2:/directory3:\\ instctrl:subset1:subset2:subset3:subset4:subset5.EE.SH See Alsogenra(8), gentapes(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?