home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
zipdel.zip
/
zipdel.doc
< prev
Wrap
Text File
|
1997-03-18
|
2KB
|
63 lines
============================================================================
ZIPDEL.DOC March 18, 1997
============================================================================
Use this script when you don't want to update an archive (zip or tar) file
but want to delete files on disk only if they have the same timestamp / size
/ subdir structure as the files in the archive, while keeping modified files
(of different time or size) on disk.
Though file contents are not compared, usually it shouldn't be a problem.
Use this program at your own risk.
Supported archive files are .zip, .tar, .tar.gz, .tgz (gzipped tar), .tar.Z.
Installation:
Copy zipdel.cmd to a subdir in the PATH.
For zip files, Info-ZIP's unzip.exe program must be in the PATH.
You may get hobbes.nmsu.edu/os2/archiver/unzip520.exe.
For (gzipped) tar files, GNU tar.exe program must be in the PATH.
You may get ftp.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtar254.zip.
Using ZIPDEL:
At an OS/2 command prompt, you can just type 'zipdel' to get help
screen.
We often want to delete files from disk that are already contained
in a zip file. Deleting those files is often not simple when the
files are intermixed among many other irrelevant files that should
not be deleted. ZIPDEL gives an easy solution to this.
If you want to delete any unpacked files, you just enter:
zipdel foo.zip
When searching unpacked files, ZIPDEL uses subdir information
that was contained in the zip file. So, even if a file was
unpacked from the zip file, if you moved the file to some other
dir, you can't delete the file by using ZIPDEL.
Regarding subdir information, ZIPDEL offers -j and -d options:
With -j option, ZIPDEL doesn't use dir information when searching
files contained in zip file, and only sees the current dir.
This -j option is much like as unzip's -j option.
With -d <DIR> option, the default dir is changed to <DIR>,
so the effect is the same as if you changed the current dir to
<DIR> and you issued:
zipdel d:path\foo.zip
For more info, see the ZIPDEL's help screen (type "zipdel" alone).
Enjoy!
--
Wonkoo Kim (wkim+@pitt.edu)