home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
useful
/
dist
/
util
/
arc
/
lharc
/
lharc.doc
< prev
next >
Wrap
Text File
|
1990-12-05
|
36KB
|
917 lines
________________________________________________________________________
------------------------------------------------------------------------
LHARC vers. 1.30
for the Commodore AMIGA
Compatible with version 1.13 of Lharc for MSDOS systems
by Paolo Zibetti
Fidonet 2:331/101.6
Internet/UUCP: Paolo.Zibetti@p6.f101.n331.z2.fidonet.org
(assembler routines by Paolo Toccaceli)
------------------------------------------------------------------------
IMPORTANT NOTICE: This program is copyrighted by Paolo Zibetti, but can
be freely distributed, providing that the following rules are respected.
- No change is made to the program nor to the accompaning documentation
- The package is always distributed in its complete form consisting of
(at least) the 4 files: "Lharc", "Lharc.doc", "Changes" and README.1st.
- Every form of distribution is allowed and encouraged, but no fee can
be charged for this program exept for, possibly, the cost of magnetic
media and/or disk duplication and shipping.
- Inclusion in PD software libraries such as Fish Disks is allowed,
provided the fees charged for these disks are comparable with those
charged by Fred Fish.
- The program cannot be distributed in any commercial product without the
written consent of the author.
Software developers interested in using Lharc for distributing thier
products should contact me to obtain my explicit permission (what I
generally ask in return is simply to receive a free copy of thier
products).
By copying, distributing and/or using the program you indicate your
acceptance of the above rules.
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 the author
be liable for direct or indirect damage or loss resulting from the use
of this program.
------------------------------------------------------------------------
________________________________________________________________________
------------------------------------------------------------------------
--- Introduction ---
Lharc is an archive program such as Arc and Zoo. It can store several
files in one archive in a compressed form which is generally more
efficent than that used by Arc and Zoo. It also supplies all of the
archive handling capabilities that an archive program should have.
In particular it is able to store an entire directory tree
(including empty directories) with one single command. This enables
you, for example, to store an entire floppy-disk with a single
command and the resulting archive is usually shorter than those
prodeced by Warp or even LhWarp (see the -r switch).
Another important feature of Lharc is its ability to preserve the file
attributes (see the -a switch) and filenotes (i.e. the comments that
AmigaODS can associate to each file).
Its only weakness is compression speed: Zoo 2.0, for example, is
faster, but if compression efficency is more important for you than
compression time you'll surely appreciate this progam. (anyway
decompression is much faster than compression)
--- Before starting ---
Lharc is a 'pure' program, i.e. you can make it resident via the
'resident' Amigados command just like any other command found in the
c: directory. Keeping Lharc resident will greatly facilitate users
who make an heavy use of Lharc (especially those who don't have an
hard disk).
If you have just received Lharc, beware that some copy programs and
some archivers (including the zoo archiver which is used for
distribution of Lharc) don't preserve file attributes, so the 'p'
flag may not be set for the Lharc executable and Amigados won't
understand that Lharc is a pure program. If so, just type the
following line at the CLI prompt:
protect Lharc p add
--- How to use ---
Lharc is run from CLI with the following command line:
Lharc [<switches>] <Command> <Archive> [<dest path>] [<file patterns>]
items in square brackets are optional.
<Command> can be any of the following (case is not significant):
e,x extract files from archive
Extracts files from archives. If you specify some file names
or patterns only those files satisfying the patterns are
extracted, otherwise all the files in the archive are
extracted.
While extracting files, Lharc checks if a file by the same
name already exsists in the destination directory and prompts
you before overwriting the old file with the extracted one
(unless you specified the -m switch)
By default, if the files have a path name stored in the archive, they
are extracted with their path and needed directories
are automatically created; use the -x0 switch to ignore path names.
See below under '<dest path>' for a discussion on where the
extracted files are stored.
l show archives contents
Displays the names of the files in an archive along with their
date, time, CRC, compression type, original lenght and
compressed lenght.
If the -x switch is specified file names are listed complete
with their path (if present in the archive), otherwise
only the name of the files is listed.
The 'l' command won't list the comments (filenotes) that may be
assiciated with a file: use the 'v' command to see them, too.
v Same as 'l', but default is to display full pathnames: i.e.
the 'v' command is equivalent to the 'l' command with the -x switch;
on the other hand the 'l' command is equivalent to the 'v' command
with the -x0 switch.
Moreover 'v' will also show any filenote (i.e. comment)
associated with the files; filenotes, if present,
are listed on a separate line preceded by a colon
(i.e. in the same format used by the AmigaDOS 'list' command).
p extract and print files to screen
same as 'e' and 'x', but extracted files are sent to stdout
t test archive integrity
Checks CRCs and checksums to ensure that the archive is not
corrupted. Lharc will test all the files on the archive, one
after each other, printing "OK" to the right of the file names
which are OK and "WARNING: CRC check failed" to the right of
file names that are corrupted. At the end of the test the
message "Operation successful" means that all the files tested
were OK, while the message "Operation not totally successful"
means that some files in the archive were corrupted (so you
will know of a corrupted file even if the warning message
relating to that file has scrolled away on the screen)
a create archives or add to existing archives
Files are stored in alphabetical order, unless you change
this with the -S switch. Note however that sorting only
applies to the files beeing added in the current session,
i.e. if you add files to an existing archive containing
other files, the new files will be stored, in alphabetical
order, AT THE END of the archive: old and new files won't be
intermixed to preserve global alphabetical order.
If you try to archive a file and a file by the same name
already exists in the archive the file will not be added
and a message will be printed on the screen to inform you.
By default only file names are stored in the archive, use the
-x switch to store file names complete with their paths.
Also, by default file attributes are not stored, use the '-a'
switch to obtain this.
m move files into archivs
Same as add, but deletes original files after archiving them
d delete files from archives
You can delete from an archive a maximum of 150 files at a time,
if you find that they are too little, please let me know!
u update files in archives
Same as with the 'a' command. However, if a file already
exists in the archive, LHarc will check i