which included commits to RCS files with non-trunk default branches. git-svn-id: svn://10.65.10.50/trunk@5403 c028cbd2-c16b-5b4b-a496-9718f37d4682
477 lines
13 KiB
Plaintext
Executable File
477 lines
13 KiB
Plaintext
Executable File
.!
|
||
.! File: ZIP_CLI.HELP
|
||
.!
|
||
.! Author: Christian Spieler
|
||
.!
|
||
.! Date: 05 Dec 95 (orig. ZIP.RNH, 22 Oct 91)
|
||
.!
|
||
.! Description:
|
||
.!
|
||
.! TPU-processable source file to produce VMS on-line help for
|
||
.! portable Zip. Adapted from ZIP.RNH, originally based on
|
||
.! ZIP.MAN (now ZIP.DOC).
|
||
.!
|
||
.! To build:
|
||
.! $ EDIT /TPU/NOSECTION/NODISPLAY/COMMAND=CVTHELP.TPU ZIP_CLI.HELP
|
||
.! $ RUNOFF /OUT=ZIP.HLP ZIP_CLI.RNH
|
||
.! $ LIBR /HELP/INSERT libr ZIP
|
||
.!
|
||
.! Modification history:
|
||
.!
|
||
.! 01-001 Christian Spieler 05-DEC-1995 02:02
|
||
.! Genesis.
|
||
.! 01-002 Christian Spieler 20-JAN-1996 03:09
|
||
.! Modified /LICENSE and /VERBOSE descriptions.
|
||
.! 01-003 Christian Spieler 11-FEB-1996 23:09
|
||
.! Added /[NO]EXTRA_FIELDS description.
|
||
.! 01-004 Christian Spieler 11-MAR-1996 20:08
|
||
.! Removed /ENCRYPT=VERIFY option.
|
||
.!
|
||
<INIT>
|
||
<MAIN>
|
||
ZIP
|
||
|
||
Zip is a compression and file packaging utility for Unix, MSDOS, OS/2, and
|
||
VMS. It is analogous to a combination of tar and compress and is
|
||
compatible with PKZIP (Phil Katz ZIP) for MSDOS systems.
|
||
|
||
There is a companion to Zip called UnZip (of course). Zip and UnZip can
|
||
work with files produced by PKZIP under MSDOS, and PKZIP and PKUNZIP can
|
||
work with files produced by Zip.
|
||
|
||
Zip 2.1 is compatible with PKZIP 2.04.
|
||
Note that PKUNZIP 1.10 cannot extract files produced by PKZIP 2.04
|
||
or zip 2.1. You must use PKZIP 2.04g or unzip 5.0p1 (or later versions)
|
||
to extract them.
|
||
|
||
For a brief help on Zip and Unzip, run each without specifying any
|
||
parameters on the command line.
|
||
|
||
Zip puts one or more compressed files into a single "zip file" along with
|
||
information about the files, including the name, path if requested, date
|
||
and time last modified, protection, and check information to verify the
|
||
fidelity of each entry. Zip can pack an entire directory structure in a
|
||
zip file with a single command. Compression ratios of 2:1 to 3:1 are
|
||
common for text files. Zip has has one compression method (deflation) and
|
||
can also store files without compression. It automatically chooses the better
|
||
of the two for each file to be compressed.
|
||
|
||
Zip is useful for packaging a set of files to send to someone or for
|
||
distribution; for archiving or backing up files; and for saving disk space
|
||
by temporarily compressing unused files or directories.
|
||
|
||
|
||
<FORMAT>
|
||
ZIP zipfile [file[,...]] [/qualifiers]
|
||
|
||
.!
|
||
<TOPIC>
|
||
Parameters
|
||
|
||
<PARAMETER>
|
||
zipfile
|
||
|
||
<PTEXT>
|
||
File specification for the ZIP archive. Zip will perform the requested action
|
||
for every zipfile matching the specification.
|
||
The default file specification is SYS$DISK:[].ZIP.
|
||
|
||
Note that self-extracting ZIP files are supported; just specify the .EXE
|
||
suffix yourself.
|
||
<TXETP>
|
||
|
||
<PARAMETER>
|
||
file
|
||
|
||
<PTEXT>
|
||
An optional comma-separated list of files to be added or replaced in the
|
||
zipfile. For unconditional add / replacement actions, a list must be
|
||
specified. For the freshening operation, all archive members are processed
|
||
per default; the optional file list restricts processing to the specified
|
||
archive members.
|
||
Expressions may be used to match multiple members. For add/update operations,
|
||
wildcard expressions are interpreted in VMS wildcard syntax to match
|
||
external files. In contrast, for freshening/deletion operation, wildcard
|
||
expressions are interpreted in UNIX compatible syntax to match the
|
||
internal names of archive members in the zipfile.
|
||
<TXETP>
|
||
|
||
<QUALIFIERS>
|
||
<QUALIFIER>
|
||
/ADJUST_OFFSETS
|
||
|
||
/ADJUST_OFFSETS
|
||
|
||
Adjust internal offsets of the Zip archive members after some data
|
||
(e.g. a SFX executable stub) has been prepended to the archive file.
|
||
<QUALIFIER>
|
||
/APPEND
|
||
|
||
/APPEND
|
||
|
||
Try to work with the existing Zip archive. Without the /APPEND qualifier,
|
||
Zip always creates a backup copy when modifying the archive. This is
|
||
slower, but prevents corruption of the old archive in case of a fatal
|
||
problem (power failures, program crash...).
|
||
<QUALIFIER>
|
||
/BATCH
|
||
|
||
/BATCH[=listfile]
|
||
|
||
Read list of files to add/update to the Zip archive from the listfile.
|
||
The listfile defaults to SYS$INPUT.
|
||
<QUALIFIER>
|
||
/COMMENT
|
||
|
||
/COMMENT[=KEYWORD[,KEYWORD]]
|
||
|
||
Add comments to the Zip archive.
|
||
<LITERAL>
|
||
| ZIP_FILE Add or replace the multi line Zip archive comment. (default)
|
||
| FILES Add a file comment to each updated or added archive member.
|
||
<LARETIL>
|
||
<QUALIFIER>
|
||
/DELETE
|
||
|
||
/DELETE
|
||
|
||
Delete entries from zip file.
|
||
<QUALIFIER>
|
||
/DIRNAMES
|
||
|
||
/DIRNAMES (default)
|
||
/NODIRNAMES
|
||
|
||
Store directory entries in the archive.
|
||
<QUALIFIER>
|
||
/ENCRYPT
|
||
|
||
/ENCRYPT
|
||
|
||
Encrypt added and updated archive entries.
|
||
Zip prompts for a password on SYS$COMMAND. For typing the password, terminal
|
||
echo is suspended. For added user security, the password prompt appears twice
|
||
and the two user inputs are checked for identity before using the password.
|
||
<QUALIFIER>
|
||
/EXCLUDE
|
||
|
||
/EXCLUDE=(file[,...])
|
||
|
||
A comma-separated list of files to exclude when deleting, updating or
|
||
adding files in the archive.
|
||
If multiple files are specified, the list should be included in
|
||
parentheses.
|
||
<QUALIFIER>
|
||
/EXTRA_FIELDS
|
||
|
||
/EXTRA_FIELDS (default)
|
||
/NOEXTRA_FIELDS
|
||
|
||
Allows inclusion of extra file attributes information in the zipfile's
|
||
entry headers.
|
||
Examples are: the VMS attributes (enabled by the /VMS qualifier), or
|
||
additional GMT time stamps. These GMT time stamps are quite useful when
|
||
transporting a Zip archive world wide, but they are only recognized
|
||
by Info-ZIP's UnZip version 5.20 and later, and take up some additional
|
||
space.
|
||
When /EXTRA_FIELDS is negated, the /VMS qualifier to request saving of the
|
||
VMS RMS file attributes is ignored, too!
|
||
<QUALIFIER>
|
||
/FRESHEN
|
||
|
||
/FRESHEN
|
||
|
||
Freshen existing zipfile entries; replace if newer. Does not cause any new
|
||
files to be added to the archive.
|
||
<QUALIFIER>
|
||
/FULL_PATH
|
||
|
||
/FULL_PATH (default)
|
||
/NOFULL_PATH
|
||
|
||
Directs Zip to store the directory part of the file names (relative to
|
||
the current working directory) in the Zip archive.
|
||
<QUALIFIER>
|
||
/HELP
|
||
|
||
/HELP
|
||
|
||
Display Zip's help screen, including the version message.
|
||
<QUALIFIER>
|
||
/INCLUDE
|
||
|
||
/INCLUDE=(file[,...])
|
||
|
||
A comma-separated list of files to include when deleting, updating or
|
||
adding files in the archive.
|
||
If multiple files are specified, the list should be included in
|
||
parentheses.
|
||
<QUALIFIER>
|
||
/JUNK
|
||
|
||
/JUNK
|
||
/NOJUNK (default)
|
||
|
||
Junk the directory part of the file names for added entries (do not
|
||
not save the directory structure). The /JUNK qualifier is an alias for
|
||
/NOFULL_PATH.
|
||
<QUALIFIER>
|
||
/KEEP_VERSION
|
||
|
||
/KEEP_VERSION
|
||
/NOKEEP_VERSION (default)
|
||
|
||
Directs Zip to include the version number appendix in the stored file names.
|
||
This allows to store multiple version of the same file in a single Zip
|
||
archive.
|
||
|
||
The normal behaviour of Zip without /KEEP_VERSION is to use only the most
|
||
recent version of a specified file and strip of the version number from
|
||
the stored file name. This behaviour ensures better compatibility when
|
||
transfering a Zip archive to non VMS systems.
|
||
<QUALIFIER>
|
||
/LATEST
|
||
|
||
/LATEST
|
||
|
||
The archive's creation and modification time is set to the latest
|
||
modification time of all archive members.
|
||
<QUALIFIER>
|
||
/LEVEL
|
||
|
||
/LEVEL=number
|
||
|
||
Specifies the compression level:
|
||
<LITERAL>
|
||
| 0 Store
|
||
| 1 Fastest compression (Defl:F)
|
||
| ...
|
||
| 9 Best compression (Defl:X)
|
||
<LARETIL>
|
||
|
||
The default level is 6.
|
||
<QUALIFIER>
|
||
/LICENSE
|
||
|
||
/LICENSE
|
||
|
||
Displays the Zip license.
|
||
<QUALIFIER>
|
||
/MOVE
|
||
|
||
/MOVE
|
||
|
||
Move the specified files into the Zip archive.
|
||
Entries which have been added (or freshened) to the zip file get removed from
|
||
the file system. If a directory is empty afterwards, it is also removed.
|
||
<QUALIFIER>
|
||
/PKZIP
|
||
|
||
/PKZIP
|
||
/NOPKZIP
|
||
|
||
Create PKZIP compatible archive entries.
|
||
The file names are truncated and converted to upper case to match the
|
||
MSDOS 8+3 file name syntax. Only the MSDOS compatible attributes are stored;
|
||
the file owner's write permission is mapped to the "readonly" attribute.
|
||
The archive entry is marked as being made under MSDOS regardless of the true
|
||
host system of Zip.
|
||
<QUALIFIER>
|
||
/QUIET
|
||
|
||
/QUIET
|
||
|
||
Perform operations quietly.
|
||
<QUALIFIER>
|
||
/RECURSE
|
||
|
||
/RECURSE
|
||
/NORECURSE
|
||
|
||
Directs Zip to recurse into subdirectories.
|
||
On VMS, this behaviour can be alternatively archived by using
|
||
the "subdirectory recursing wildcard" [...] in the "include files" parameter
|
||
list.
|
||
<QUALIFIER>
|
||
/SINCE
|
||
|
||
/SINCE=(VMS time specification)
|
||
|
||
Only handle files that are newer than the specified date and time.
|
||
<QUALIFIER>
|
||
/STORETYPES
|
||
|
||
/STORETYPES=(.ext1,.ext2,... )
|
||
|
||
For files with the specified extensions, Zip does not try to compress the
|
||
data but stores them verbatim. This speeds up operation on files that
|
||
have already been compressed and where a second compression step usually
|
||
does not gain much space.
|
||
The default list of extensions where compression is suppressed is
|
||
(.Z,.zip,.zoo,.arc,.arj).
|
||
|
||
But note: when maximum level of compression is requested (/LEVEL=9), the
|
||
STORETYPES heuristic is not used. In this case, Zip tries to compress ALL
|
||
files.
|
||
<QUALIFIER>
|
||
/TEMP_PATH
|
||
|
||
/TEMP_PATH=(dirspec)
|
||
|
||
Specifies an alternate directory where Zip creates its temporary files.
|
||
When this qualifier is not given, Zip attempts to write to the current
|
||
working directory.
|
||
<QUALIFIER>
|
||
/TEST
|
||
|
||
/TEST
|
||
|
||
Test archive integrity.
|
||
<QUALIFIER>
|
||
/TRANSLATE_EOL
|
||
|
||
/TRANSLATE_EOL[=KEYWORD]
|
||
|
||
Selects conversion of the end-of-line markers in text files.
|
||
The optional keywords recognized are:
|
||
<LITERAL>
|
||
| LF convert LF -> CRLF (UNIX convention to DOS convention) (default)
|
||
| CRLF convert CRLF -> LF, and strip any trailing CTRL-Z (DOS to UNIX).
|
||
<LARETIL>
|
||
|
||
This option should only be used with text files. The second option CRLF
|
||
is only useful when a DOS text file has been transfered to a VMS disk
|
||
in stream (or stream_lf) format.
|
||
<QUALIFIER>
|
||
/UNSFX
|
||
|
||
/UNSFX
|
||
|
||
Strip any prepended data from the Zip archive, for example a self-extracting
|
||
executable stub.
|
||
<QUALIFIER>
|
||
/UPDATE
|
||
|
||
/UPDATE
|
||
|
||
Freshen existing archive entries; create new ones if needed.
|
||
<QUALIFIER>
|
||
/VERBOSE
|
||
|
||
/VERBOSE[=MORE|DEBUG]
|
||
|
||
Switch on verbose messages. This includes diagnostics on discovered
|
||
oddities in the zipfile's structure, and a progress indicator during
|
||
compression operation.
|
||
|
||
When this qualifier is the only command line argument given, it has a special
|
||
meaning. In this case a screen of diagnostic information about the program
|
||
version is displayed. This display includes the Zip version number and
|
||
release date, and it shows some information to determine when and how
|
||
the executable was built and set up. This includes info on the used compiler's
|
||
name and version, the date of the build (if available), and some optional
|
||
compile time feature flags. Additionally, the contents of the environment
|
||
variables (=logical names on VMS) that are read by Zip for runtime
|
||
configuration are shown.
|
||
This information is especially valuable when reporting problems or bugs.
|
||
|
||
<QUALIFIER>
|
||
/VMS
|
||
|
||
/VMS
|
||
|
||
Store VMS file attributes in Zip archive.
|
||
|
||
<TOPIC>
|
||
Authors
|
||
|
||
Info-ZIP; currently maintained by Onno van der Linden. VMS support maintained
|
||
by Igor Mandrichenko, Christian Spieler, and Hunter Goatley. Originally based
|
||
on a program by Samuel H. Smith.
|
||
|
||
VMS on-line help ported from ZIP.DOC by Christian Spieler, using
|
||
Hunter Goatley's work for UnZip.
|
||
|
||
<TOPIC>
|
||
UNIX_Options
|
||
|
||
The default action of Zip is to add or replace zipfile entries from list, which
|
||
can include the special name -@ to read names from SYS$INPUT. The following
|
||
list of options was taken from the on-line help generated when Zip is run
|
||
without any command-line parameters:
|
||
|
||
<LITERAL>
|
||
| -A adjust self-extracting exe
|
||
| -b use "path" for temp files
|
||
| -c add one-line comments
|
||
| -d delete entries in zipfile
|
||
| -D do not add directory entries
|
||
| -e encrypt
|
||
| -f freshen: only changed files
|
||
| -F fix zipfile (-FF try harder)
|
||
| -g allow growing existing zipfile
|
||
| -h show this help
|
||
| -i include only the following names
|
||
| -j junk (don't record) directory names
|
||
| -J junk (remove) prepended (SFX) stub
|
||
| -k simulate PKZIP made zipfile
|
||
| -l translate end-of-lines (LF -> CRLF)
|
||
| -ll translate end-of-lines (CRLF -> LF)
|
||
| -L show software license
|
||
| -m move into zipfile (delete files)
|
||
| -n don't compress theses suffixes
|
||
| -o make zipfile as old as latest entry
|
||
| -q quiet operation
|
||
| -r recurse into directories
|
||
| -t only do files after "mmddyy"
|
||
| -T test zip file integrity
|
||
| -u update: only changed or new files
|
||
| -v verbose messages/print version info
|
||
| -V save VMS file attributes
|
||
| -w append the VMS version number to name stored in zip file
|
||
| -x exclude the names that follow from those operated on
|
||
| -X suppress storing of any extra file attributes
|
||
| -z add zipfile comment
|
||
| -0 store only
|
||
| -1 compress faster
|
||
| -9 compress better
|
||
<LARETIL>
|
||
|
||
Note that uppercase options such as -A, -D, -L, -T and -V must be specified
|
||
in quotes. For example:
|
||
|
||
<LITERAL>
|
||
| $ zip "-VD" -a zipfile
|
||
<LARETIL>
|
||
|
||
.![this should probably be a separate section]:
|
||
In addition, default options may be specified via the ZIP_OPTS logical.
|
||
For example, the following will cause Zip to skip directories, include
|
||
VMS attribute information perform all operations at quiet-level 1 by default:
|
||
|
||
<LITERAL>
|
||
| $ define ZIP_OPTS "-qDV"
|
||
<LARETIL>
|
||
|
||
Note that the quotation marks here are required to preserve lowercase options
|
||
(opposite of the command-line behavior). To negate a default option on the
|
||
command line, add one or more minus signs before the option letter, in
|
||
addition to the leading switch character `-':
|
||
|
||
<LITERAL>
|
||
| $ zip --ql zipfile
|
||
<LARETIL>
|
||
|
||
or
|
||
|
||
<LITERAL>
|
||
| $ zip -l-q zipfile
|
||
<LARETIL>
|
||
|
||
At present it is not possible to decrement an option below zero--that is,
|
||
more than a few minuses have no effect.
|
||
|
||
ZIP_OPTS may be defined as a symbol rather than a logical, but if both
|
||
are defined, the logical is used.
|
||
===
|