home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
comm
/
ozpr12.zip
/
OZPURGE.DOC
next >
Wrap
Text File
|
1993-06-22
|
6KB
|
159 lines
┌────────────────────────────────┐
│ OzPurge 1.2 │
│ │
│ An OzCIS companion program │
│ │
│ by Patrick Philippot │
│ │
│ (c) 1993 - All rights reserved │
└────────────────────────────────┘
- OzCIS is copyrighted (c) 1990,1992 Steve Sneed -
I'm a statisfied OzCIS user. I could hardly find big problems
in this software. However, I think two features are missing to make
it almost perfect.
First, I have noticed that, for an unknown reason, duplicate
entries happen to show up when opening the "Download" window. I
couldn't find when and why the problem occurs. Since OzCIS doesn't
have any provision for removing these entries, I had to do that
manually.
Second, there's no way to purge the catalog files by date. So,
as time goes by, my catalog files keep growing while unnecessary
entries could be removed.
So, I finally decided to do something for my hard disk. It was
also time to modestly contribute to the OzCIS project.
OzPurge is a simple utility processing OzCIS catalog files
(.L* files) and removing all duplicate entries in these files.
Moreover, you can ask OzPurge to remove any entry older than a
given date. After running OzPurge against your catalog files,
you'll wonder how much disk space you can recover.
USING OzPurge
*************
OzPurge is fairly simple to use. Here is the command syntax:
ozpurge filespec [date] [/log]
Parameters enclosed within square brackets are optional. Square
brackets must not be typed in.
filespec This parameter indicates which files have to be
processed. Wildcards are allowed. Be aware that the
original file(s) will be overwritten. So, if you want
to keep a copy, backup the file(s) before proceeding.
The filespec parameter may include a path. Purged
files will be saved in their current directory.
date If you want to remove entries older than a given
date, enter this date after the filespec. The date
must be specified in the same format as the one
used in the catalog files:
dd-Jan-yy
dd is the day (2 digits mandatory).
the month can be specified as Jan, Feb, Mar, etc...
(3 digits mandatory).
yy is the year (2 digits mandatory).
/log This parameter was implemented mainly for debugging
purposes. But you may find useful to have a report
of all entries that were deleted along with the
reason of their deletion. It must come after the
date if any is specified or after the filespec
otherwise.
Examples:
ozpurge
will do nothing. Display a syntax summary.
ozpurge ibmapp.l1
remove all duplicate entries in IBMAPP.L1
ozpurge ibmapp.l* 01-Jan-90
remove all duplicate entries in the specified files as well
as all entries older than 01/01/90.
ozpurge ibmapp.l* 01-Jan-90 /log
ditto + record all actions in OZPURGE.LOG. Existing log file is
destroyed.
Duplicate entries are systematically removed.
The Log file is always generated in the current directory.
Of course, running OzPurge against files that are not OzCIS
catalog files will give unpredictable results. However, OzPurge
will detect the error in most cases and will then issue an error
message. Binaries are also detected.
All lines between the first line of the file and the header of
the first valid entry are deleted. Otherwise, all lines between two
valid entries are stored "as is" in the resulting file.
Since OzCIS itself cannot deal with catalog files containing
tab characters, OzPurge assumes that these files are already
expanded (that is, all tab characters are converted to spaces).
As soon as CIS will change the format of its library entries,
OzPurge will not work any more.
The date comparison algorithm will not work after 1999. Please
drop a message before Thansksgiving 1999 to remind me that I have
to change the code...
Since a catalog file is merely a dump of CIS screens, I guess
OzPurge will also work with other programs interfacing CIS. Feel
free to upload OzPurge wherever you want.
OzPurge is a freeware. It may be freely copied and distributed
as long as no charge is made for the program itself. Including
OzPurge in a commercial package without written permission of the
author is prohibited.
Have fun!
Patrick Philippot, Draveil, France
06/22/93
Change History
**************
version 1.1
- Fixed bug when using OzPurge across drives or from a directory
which is not the directory where the catalog resides.
version 1.2
- The catalog's filedate is now left unchanged after processing. This
avoids problems when updating the catalog if OzPurge has not been
used just after downloading/updating.