home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug044.arc
/
CATALOG.DOC
< prev
next >
Wrap
Text File
|
1979-12-31
|
8KB
|
241 lines
DOCUMENTATION FOR MASTER CATALOG SYSTEM
---------------------------------------
Last revised: 23-Apr-84
Ian Gillies, Malcolm Miles
INTRODUCTION
This document describes a system for cataloging collections
of CP/M diskettes. The system and documentation were
originally written by Ward Christensen. The latest updates
to this system are available on TARDIS-RCPM on 03-67-7760.
Any comments or suggestions please leave a message for the
SYSOP.
The master cataloging system consists of the following
programs (current version numbers are listed):
MAST.CAT The catalog itself
FMAP.COM V2.2 Used to create NAMES.SUB, the
"transaction file" for catalog update.
UCAT.COM V2.2 The update program, merges NAMES.SUB
into MAST.CAT.
CAT.COM V2.1 Catalog listing program.
-----------------------------------------------------------
FIRST TIME
Before running the CATALOG system for the first time the
master catalog file must be created and your disks
serialized.
First create MAST.CAT with the following format:
(filename.typ
filename.typ
filename.typ)
This is a list of the filenames that are not to be
catalogued and usually includes system-type files that are
on every disk. For example:
(ASM.COM
DDT.COM
LOAD.COM
PIP.COM
STAT.COM
SUBMIT.COM)
The parenthesis pair must always be present even if no files
are to be ignored.
Each disk to be catalogued must be serialized. This is done
by having a unique file on the disk to identify it. This
filename is in the format:
-filename.serial
for example: -GAMES.002
The filename must begin with a '-' as it is this that
ensures that it is listed first in a sorted disk directory.
For this reason you should ensure that no other files on a
disk have a filename starting with a '-'. For the same
reason you should never have a file on a disk with a
filename starting with any character whose ASCII code is
less than a '-', for example, '+', '#', '%'.
You may create this file on your disk with a simple SAVE
command as follows:
SAVE 0 B:-GAMES.002
(NOTE: The SAP (sort and pack directory) program distributed
on the CP/M User Group library deletes all 0-length file
entries, so if you use this utility or one similar to it,
use SAVE 1, not SAVE 0.)
----------------------------------------------------------
HOW TO USE
Once you have created the MAST.CAT file and serialized your
disks you can now run the CATALOG system proper. The easiest
way to run the CATALOG system is from a SUBMIT file. Create
the file CAT.SUB with the following format:
FMAP B:*.* FN
UCAT
To catalog a disk mount the disk with MAST.CAT and CAT.SUB
on drive A and the disk to be catalogued on drive B. Then
type SUBMIT CAT. Change the disk in drive B and repeat until
all disks have been catalogued. (HINT: change the name of
the SUBMIT program to @.COM to reduce the amount of typing.)
------------------------------------------------------------
PROGRAM DETAILS
MAST.CAT is the master catalog file. It has the following
format:
(ignore-file
ignore-file
ignore-file)
filename.type,diskname.serial;user
For example:
(PIP.COM
STAT.COM)
FOO.ASM,WORK.002;1
STARTREK.COM,GAMES.002;0
----------------------------------------------------------
FMAP is used to update the catalog for a disk. FMAP does
this by creating a NAMES.SUB file which contains a sorted
list of the files on the disk to be catalogued.
Submit files ($$$.SUB) and temporary files (*.$$$) are
automatically skipped. FMAP also creates a dummy file entry
in NAMES.SUB file giving the amount of space left on the
disk. This dummy file creation can be disabled at compile
time. The file entry is of the form:
[ 999 ].LFT where 999 is the amount (in K) remaining
on the disk
If you run FMAP without any parameters a full list of
options and their use will be displayed. FMAP can be used
for a number of purposes but when using FMAP for cataloguing
the following command format should be followed (a parameter
is optional if in []):
FMAP [input drive:]*.* [output drive:]F[N]
If no drives are specified FMAP defaults to the current
default drive.
If the N option is specified console listing is suppressed.
---------------------------------------------------------
UCAT is used to merge the NAMES.SUB file created by FMAP
into the MAST.CAT file and then erase NAMES.SUB.
UCAT [-filename.serial]
The optional '-filename.serial' parameter allows the
cataloguing of disks that you do not wish to create a
'-filename.serial' on (eg: master disks). This parameter
will also override any '-filename.serial' already on the
disk to be catalogued. This is useful when cataloguing disks
which may have a number of '-filename.serial' entries (eg:
archive disks).
Note that UCAT is a "belts and suspenders" type program,
i.e: it creates NEW.CAT, merges NAMES.SUB with MAST.CAT and
puts it into NEW.CAT and only then does it -
era mast.bak
ren mast.bak=mast.cat
ren mast.cat=new.cat
This means that unless you era mast.bak, there will be 3
copies of the master catalog on the disk during UCAT
execution. Because of this if you are pressed for disk space
you may have to erase MAST.BAK prior to running UCAT.
-------------------------------------------------------------
CAT formats and displays MAST.CAT to a screen or printer.
The format of CAT is:
CAT [filename.type] [diskname.serial] [title or comments]
All parameters are optional. If the filename is omitted a
default filename of '*.*' is assumed. If the diskname.serial
is omitted then a default of all disks is assumed. The
wildcards '*' and '?' can be used in specifying filenames
and disknames.
Examples: CAT all files
CAT *.* WORK.* all files on any -WORK disk
CAT *.ASM all .ASM files
CAT *.* *.* as at 11-Jan-84
displays title on each page
The following features of CAT can be changed by modifying
the conditionals in the source file and re-compiling: page
length, page pause, page numbering, screen width and
omission of '-filenames' from output.
-----------------------------------------------------------
REMOVING DISKS FROM MAST.CAT
If you want to remove the entries for a catalogued disk from
MAST.CAT you need to create a file called NAMES.SUB which
contains a single line:
-filename.serial
where '-filename.serial' is the disk you wish deleted. UCAT
is then run normally and will remove all file entries for
that disk from MAST.CAT.
------------------------------------------------------------
The FIND program (available on the TARDIS RCPM and in the
CP/M User Group library) is also very useful when used
with MAST.CAT. Suppose you have the following in
MAST.CAT:
BIOS1.ASM
BVIOS.ASM
CBIOS.ASM
M2BIOS.ASM
It's obvious that CAT cannot find all your BIOS related
files but use FIND as follows:
FIND MAST.CAT IOS
and you will find them all.
-----------------------------------------------------------
End of documentation
23-Apr-84 Malcolm Miles
----------------------------------------------------------
REMOVING DISKS FROM MAST.CAT