home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
archiver
/
lharc102
/
lharc.doc
< prev
next >
Wrap
Text File
|
1990-02-27
|
8KB
|
238 lines
LHarc - Atari ST Version 1.02
02/27/90
INTRODUCTION
LHarc was originally written for use on MSDOS systems by Haruyasu
Yoshizaki. The UN*X version of LHarc was written by Yooichi
Tagawa, and it is his version 0.03 that I used for the "initial"
Atari ST port. I say "initial" because I have changed the user
commands so that they are compatible with the PC version wherever
possible. I have also added some commands that the UN*X version
was lacking, but I thought were necessary, such as archive
testing.
DISCLAIMER
I make no warranty regarding the use of this version of LHarc. Use
this program only if you are willing to assume all responsibility
for any damage you may sustain using it.
USING LHARC
Command-line synopsis:
lharc {<command>}[<options>] archive [files or directories]
You must have one command and 0 or more options on each command-line.
COMMANDS
a - Add file to archive
Ex. lharc a archive.lzh file.ext
Adds 'file.ext' to 'archive.lzh. If 'archive.lzh' does not
exist, then LHarc creates it. If a file with the name
'file1.ext' already exists in the archive, then LHarc will
replace it with the specified file.
------------------------------------------------------------------
u - Update files to archive
Ex. lharc u archive.lzh file.ext
Adds 'file.ext' to 'archive.lzh', the same as with the 'a'
command. However, if 'file.ext' already exists in the
archive, LHarc will check it's time stamp. and will keep the
newer one and ignore the older one.
------------------------------------------------------------------
c - reConstruct archive
Ex. lharc c archive.lzh file.ext
This is the same as the 'a' commands except for the fact that
if 'archive.lzh' already exists, it will be deleted, then re-
created with 'file.ext' becoming the only file in the
archive. NOTE: This command is not available in the MS-DOS
version.
------------------------------------------------------------------
m - Move files into archive
Ex. lharc m archive.lzh file.ext
This is the same as the 'u' command but after updating
'archive.lzh' with 'file.ext', 'file.ext' will be deleted.
Be careful when using this command.
------------------------------------------------------------------
e or x - Extract files from archive
Ex. lharc x archive.lzh
Extracts all the files from 'archive.lzh'.
Ex. lharc x archive.lzh file.ext
Extracts only 'file.ext' from 'archive.lzh'. If the name
'file.ext' already exists then LHarc will ask you if you wish
to overwrite the existing 'file.ext'.
Ex. lharc x archive.lzs file.ext
Extracts 'file.ext' from an .LZS file archived with Larc
3.xx. NOTE: This is an untested feature as I could not find
an .LZS file to test it with.
------------------------------------------------------------------
p - disPlay files in archive
Ex. lharc p archive.lzh file.ext
Extract 'file.ext' from archive.lzh' and redirects it to
standard output.
------------------------------------------------------------------
d - Delete a file from archive
Ex. lharc d archive.lzh file.ext
Deletes 'file.ext' from 'archive.lzh'.
------------------------------------------------------------------
l or v - List files in archive
Ex. lharc l archive.lzh
Lists information about all the files in 'archive.lzh'. The
'v' command gives a more detailed listing than the 'l'
command.
------------------------------------------------------------------
t - Test archive integrity
Ex. lharc t archive.lzh
Will check the integrity of the archives file 'archive.lzh'
by CRC check.
------------------------------------------------------------------
OPTIONS
NOTE: Most of the options are not consistent with the MS-DOS
version.
b - Keep a backup of an old archive
Ex. lharc ab archive.lzh file.ext
If 'archive.lzh' is an existing archive then make a backup
copy of it before adding 'file.ext'. The backup will be
renamed to 'archive.bak'.
------------------------------------------------------------------
f - Force overwrite at extract
Ex. lharc xf archive.lzh file.ext
When extracting, if 'file.ext' already exists it will
automatically be overwritten.
------------------------------------------------------------------
h - Hold screen
Ex. lharc vh archive.lzh
This will cause the prompt "Hit any key to continue..." to
appear when any command is completed. This is useful when
running LHarc from the desktop so that you have time to read
the screen.
------------------------------------------------------------------
q - Quiet mode
Use this option if you want minimal onscreen messages.
------------------------------------------------------------------
s - Files are text files.
Ex. lharc as archive.lzh file.ext
If 'file.ext' is known to be a text file and you specify this
option then LHarc will do LF -> LF/CR conversion and vice
versa.
------------------------------------------------------------------
z - Distinguish full path names / Ignore full path names
Ex. lharc xz archive.lzh
This will cause LHarc to either use the full path names or
ignore them, depending upon you environment. If you are
running LHarc from the desktop or a graphical shell, such as
ArcShell, then the 'z' option will cause LHarc to use the
full path names when adding or extracting files. If you are
running from a CLI shell, such as Gulam, the 'z' option will
cause LHarc to ignore full path names.
------------------------------------------------------------------
OTHER FEATURES
- LHarc supports the environmental variable 'ARCTEMP'. If
the variable is set then LHarc will write all of it's
temporary files to the specified directory.
Ex. If 'ARCTEMP' is set to 'J:\tmp\' LHarc will write it's
temporary files to subdirectory \tmp\ on drive J:.
- LHarc accepts both slashes and backslashes as directory
separators. This is inherent in the GCC libraries.
- LHarc can manipulate MS-DOS self-extracting LZH files with
the extenders .COM and .EXE.
- The only limits to the number of files per archive should
be the amount of memory you have and the amount of disk
space available. NOTE: The most files I have used during
tests was 517.
INCOMPATIBILITIES
- MS-DOS version cannot extract ST archives that include full
path names. If you are going to use you archives in both
the ST and MS-DOS worlds, then do not use path names!
ACKNOWLEDGMENTS
This port of LHarc was done using GCC V1.37. I don't think any
other C compiler available for the Atari ST can match the code it
produces, speedwise.
Thanks to Jwahar Bammi and Eric Smith for all the work and long
hours they've put in on the GNU C compiler and it's libraries.
Thanks to Haruyasu Yoshizaki for developing LHarc-PC and releasing
it into the public domain.
Thanks to Yooichi Tagawa for releasing his UN*X port of LHarc so I
could port it with minimal difficulties. No byte swapping!
Please send all comments, suggestions, and bug reports to:
Bill Shroka
bjsjr@NCoast.ORG
ncoast!bjsjr@hal.cwru.edu
uunet!hal.cwru.edu!ncoast!bjsjr
GEnie: B.SHROKA
Some portions of this documentation are taken directly from the
MS-DOS LHarc manual.