MakeCatalogDoc.tioga
Last edited by Beach, January 23, 1985 2:14:41 pm PST
MAKECATALOG
CEDAR 5.2 — FOR INTERNAL XEROX USE ONLY
Make Catalog of
Cedar Software Packages
Richard J. Beach
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: The MakeCatalog command creates a catalog document of all the software packages contained in a software directory. Typically, the catalogs are created from Cedar released software directories or CedarHacks software directories. However, a catalog can be created from any directory that conforms to the software naming conventions used in Cedar releases.
Keywords: catalog, documentation, software releases
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
1. Contents of a Catalog Document
A catalog of Cedar software contains brief descriptions of all the components or packages in that software. Each package has a name and the catalog entry is created from information known about that package. The catalog also contains two indices of commands and keywords for the set of packages.
Package Descriptions
DF File
The DF file refers to the description file for the package software and documentation. By convention, the DF file for Package in software release SoftwareRelease is in a software release directory [Server]<SoftwareRelease>Top>Package.DF. Conventional SoftwareRelease names are <Cedar®> for Cedar releases, <PostCedar®> for revisions to released packages in the corresponding Cedar release, <CedarHacks®> for hacks available for a particular Cedar release, where ® refers to the release number, such as 5.2 or 6.0.
Documentation Files
This is a list of documentation files available to describe the package in some detail. By convention, documentation files for the package are named PackageDoc.Tioga and live in the direcory [Server]<SoftwareRelease>Documentation>.
Author
The author of the package is provided. In some cases, this may be of historical interest only.
Maintainer
The maintainer is the person or distribution list to whom enquiries should be directed.
Keywords
The list of keywords indicates the topics addressed by this package. The catalog contains an index of these keywords.
Commands
The collection of commands defined in this package are listed. Only those commands that have load files in the package DF file are included in this list. The catalog contains an index of commands.
Abstract or Documentation
The brief abstract or documentation for this package is included in the catalog. If there is no documentation file listed, then this may be the entire documentation available for the package (as in the case of some hacks).
2. The MakeCatalog Command
name MakeCatalog
syntax
MakeCatalog [-quiet] [-server <ServerName>] CatalogName
description
Creates a catalog document from the software packages [ServerName]<CatalogName>Top>*.DF.
The -server option specifies the file server; the default server is the system host defined by the DefaultRemoteNames interface.
The -quiet options suppresses the running commentary on the packages being included in the catalog.
examples
MakeCatalog Cedar5.2
MakeCatalog -server Cyan Imaging
MakeCatalog -quiet PostCedar5.2
warnings
MakeCatalog will bring all the DF files and documentation files into your local file cache. This may result in a large number of files being flushed from your cache to make room.
stop/undo
Click STOP! in the CommandTool.
implementation
MakeCatalogImpl.Mesa in MakeCatalog.DF
contact
Beach.pa
keyword hints
catalog, documentation, software release
keywords
to be supplied by the Index Czar at the appropriate time in the future
3. Heuristics for Creating a Catalog Document
DF Files
The directory [ServerName]<CatalogName>Top> is enumerated for all the DF files. Each DF file is assumed to be a package; that is, Package.DF is assumed to refer to the software component Package.
Command Files
The commands are found by enumerating all the exported ".Load" files in Package.DF. The file Command.Load is assumed to refer to the command Command. Commands registered by software without load files are assumed to be private commands and are not included in the catalog. Besides, there is no convenient way to enumerate these commands and discover their existence.
Documentation Files
Documentation files are found by enumerating all the ".Tioga" files in Package.DF. Any file that matches the pattern "*Doc.Tioga" is assumed to be a documentation file and is included in the list of files. The distinguished documentation file, PackageDoc.Tioga is examined to extract the author, keywords, and abstract for the package.
Author
The author is found by searching for a Tioga node with format "authors" in the documentation file PackageDoc.Tioga. Multiple author nodes are concatenated together separated by a semi-colon. Only the title page of the documentation is searched, where the title page is defined to be those nodes preceeding the Xerox PARC address which has format "boilerplate", appropriately enough.
Abstract
The documentation abstract is found by copying nodes with format "abstract" from the documentation file PackageDoc.Tioga. The abstract is defined to begin with the phrase "Abstract" or to be the first node following the copyright notice. The abstract is defined to end just prior to the first node without format "abstract" or an abstract node that begins with the phrase "Keyword".
Keywords
The list of keywords is copied from the documentation file. The keyword list is found by searching for a Tioga node with format "abstract" that begins with the phrase "Keyword". The list of keywords is parsed to create a keyword index. Each keyword phrase is assumed to be separated by a comma and the first phrase, assumed to be "Keywords: ", is ignored.