home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zipdel.zip / zipdel.doc < prev   
Text File  |  1997-03-18  |  2KB  |  63 lines

  1. ============================================================================
  2. ZIPDEL.DOC                              March 18, 1997
  3. ============================================================================
  4.  
  5. Use this script when you don't want to update an archive (zip or tar) file
  6. but want to delete files on disk only if they have the same timestamp / size
  7. / subdir structure as the files in the archive, while keeping modified files
  8. (of different time or size) on disk.
  9.  
  10. Though file contents are not compared, usually it shouldn't be a problem.
  11. Use this program at your own risk.
  12.  
  13. Supported archive files are .zip, .tar, .tar.gz, .tgz (gzipped tar), .tar.Z.
  14.  
  15.  
  16. Installation:
  17.  
  18.     Copy zipdel.cmd to a subdir in the PATH.
  19.  
  20.     For zip files, Info-ZIP's unzip.exe program must be in the PATH.
  21.     You may get hobbes.nmsu.edu/os2/archiver/unzip520.exe.
  22.  
  23.     For (gzipped) tar files, GNU tar.exe program must be in the PATH.
  24.     You may get ftp.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtar254.zip.
  25.  
  26.  
  27. Using ZIPDEL:
  28.  
  29.     At an OS/2 command prompt, you can just type 'zipdel' to get help
  30.     screen.
  31.  
  32.     We often want to delete files from disk that are already contained
  33.     in a zip file.  Deleting those files is often not simple when the
  34.     files are intermixed among many other irrelevant files that should
  35.     not be deleted.  ZIPDEL gives an easy solution to this.
  36.     If you want to delete any unpacked files, you just enter:
  37.  
  38.     zipdel foo.zip
  39.  
  40.     When searching unpacked files, ZIPDEL uses subdir information
  41.     that was contained in the zip file.  So, even if a file was
  42.     unpacked from the zip file, if you moved the file to some other
  43.     dir, you can't delete the file by using ZIPDEL.
  44.  
  45.     Regarding subdir information, ZIPDEL offers -j and -d options:
  46.  
  47.     With -j option, ZIPDEL doesn't use dir information when searching
  48.     files contained in zip file, and only sees the current dir.
  49.     This -j option is much like as unzip's -j option.
  50.  
  51.     With -d <DIR> option, the default dir is changed to <DIR>,
  52.     so the effect is the same as if you changed the current dir to
  53.     <DIR> and you issued:
  54.  
  55.     zipdel d:path\foo.zip
  56.  
  57.     For more info, see the ZIPDEL's help screen (type "zipdel" alone).
  58.     Enjoy!
  59.  
  60. --
  61. Wonkoo Kim (wkim+@pitt.edu)
  62.  
  63.