home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
292.lha
/
Lharc_v.31
/
lzh.doc
< prev
next >
Wrap
Text File
|
1992-09-02
|
4KB
|
132 lines
________________________________________________________________________
------------------------------------------------------------------------
LHARC vers. 0.30
for the Commodore AMIGA
Compatible with version 1.13 of Lharc for MSDOS systems
by Paolo Zibetti
------------------------------------------------------------------------
IMPORTANT NOTICE: This program is PUBBLIC DOMAIN and can be freely
distributed, provided no change is made to it and this document always
accompanies it.
You are not allowed to charge any fee for this program exept for,
possibly, the cost of magnetic media.
Also remember that this program is supplied 'as is': the entire risk as
to the quality of the program is to the user. In no event will I be
liable for direct or indirect damage or loss resulting from the use
of this program.
------------------------------------------------------------------------
________________________________________________________________________
------------------------------------------------------------------------
Lharc is an archive program such as Arc and Zoo. It can store files in a
compressed form which is generally more efficent than that used by Arc
and Zoo.
Lharc is run from CLI:
lharc <Command> <Archive name> [<dest path>] [<file names/patterns>]
<Command> can be any of the following:
e,x extract files from archive
l,v show archives contents
p extract and print files to screen
t test archive integrity
a create archives or add to existing archives
<Archive name> is the name (eventually preceded by a path) of the
archive you want to work on. If no extension is specified the default
extension .LZH is used.
[<dest path>] is optional: it tells where to put the extracted files.
If not specified, extracted files will go to the current directory.
Please note that this paramenter must always end with '/' or ':'
otherwise it will not be recognized as such and will be considered
as one of the file patterns
[<file names/patterns>] rappresents an optional number of file names
or file patterns. They indicate which files to
extract/compress/list. Accepted wild cards are the standard
AmigaDOS '#' and '?'
For the program to properly work the T: device must be assigned. In fact
Lharc puts temporary work files in T: if you don't assign this device
before executing the program you will get a requester asking "Please
insert volume T: in any drive".
In order to increase compression speed I raccomand that you assign T: to
a directory in the ram-disk.
Note however that T: is usually automatically assigned in the
startup-sequence of the standard Workbench, so, unless you have modified
the startup-sequence, you don't have to worry about this.
This program is aimed at full compatibility with the MSDOS version
1.13 of Lharc. Please note however that the MSDOS version has also
the capability of extracting files from archives produced by Larc
(a pupular Giapanise archive program): this feature will not be
implemented in the Amiga version.
Acknowledgements:
Since the source to the msdos version of Lharc is not available, I
had to rewrite the program from scratch.
Note howerer that for the Huffman compression/decompression I have
used with few modifications a source of an example of single file
compression which I found on a BBS. For sake of correctness I
quote here the the header of this source:
/*
* LZHUF.C English version 1.0
* Based on Japanese version 29-NOV-1988
* LZSS coded by Haruhiko OKUMURA
* Adaptive Huffman Coding coded by Haruyasu YOSHIZAKI
* Edited and translated to English by Kenji RIKITAKE
*/
I whish to thank the above people whose work has been of
foundamental importance for this project.
Please send suggestions, comments and bug reports to
Paolo Zibetti Fido node 2:331/101.6