Dieter Baron | bb1453e | 2003-10-02 14:20:53 +0000 | [diff] [blame] | 1 | .\" zipcmp.mdoc -- compare zip archives |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 2 | .\" Copyright (C) 2003-2014 Dieter Baron and Thomas Klausner |
Dieter Baron | bb1453e | 2003-10-02 14:20:53 +0000 | [diff] [blame] | 3 | .\" |
| 4 | .\" This file is part of libzip, a library to manipulate ZIP archives. |
Dieter Baron | b86c433 | 2007-11-07 14:35:13 +0100 | [diff] [blame] | 5 | .\" The authors can be contacted at <libzip@nih.at> |
Dieter Baron | bb1453e | 2003-10-02 14:20:53 +0000 | [diff] [blame] | 6 | .\" |
| 7 | .\" Redistribution and use in source and binary forms, with or without |
| 8 | .\" modification, are permitted provided that the following conditions |
| 9 | .\" are met: |
| 10 | .\" 1. Redistributions of source code must retain the above copyright |
| 11 | .\" notice, this list of conditions and the following disclaimer. |
| 12 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 13 | .\" notice, this list of conditions and the following disclaimer in |
| 14 | .\" the documentation and/or other materials provided with the |
| 15 | .\" distribution. |
| 16 | .\" 3. The names of the authors may not be used to endorse or promote |
| 17 | .\" products derived from this software without specific prior |
| 18 | .\" written permission. |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 19 | .\" |
Dieter Baron | bb1453e | 2003-10-02 14:20:53 +0000 | [diff] [blame] | 20 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS |
| 21 | .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 22 | .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY |
| 24 | .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 26 | .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 27 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
| 28 | .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 29 | .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 30 | .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | .\" |
Thomas Klausner | 6d8ff24 | 2015-04-29 14:11:09 +0200 | [diff] [blame^] | 32 | .Dd April 29, 2015 |
Dieter Baron | 9028826 | 2003-10-01 18:28:10 +0000 | [diff] [blame] | 33 | .Dt ZIPCMP 1 |
| 34 | .Os |
| 35 | .Sh NAME |
| 36 | .Nm zipcmp |
| 37 | .Nd compare contents of zip archives |
| 38 | .Sh SYNOPSIS |
| 39 | .Nm |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 40 | .Op Fl hipqtVv |
| 41 | .Ar archive1 archive2 |
Dieter Baron | 9028826 | 2003-10-01 18:28:10 +0000 | [diff] [blame] | 42 | .Sh DESCRIPTION |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 43 | .Nm |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 44 | compares the zip archives or directories |
| 45 | .Ar archive1 |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 46 | and |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 47 | .Ar archive2 |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 48 | and checks if they contain the same files, comparing their names, |
| 49 | uncompressed sizes, and CRCs. |
| 50 | File order and compressed size differences are ignored. |
| 51 | .Pp |
| 52 | Supported options: |
Thomas Klausner | 23da056 | 2005-06-09 18:45:58 +0000 | [diff] [blame] | 53 | .Bl -tag -width MMM |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 54 | .It Fl h |
| 55 | Display a short help message and exit. |
Dieter Baron | 3014e88 | 2003-10-03 23:54:32 +0000 | [diff] [blame] | 56 | .It Fl i |
| 57 | Compare names ignoring case distinctions. |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 58 | .It Fl p |
| 59 | Enable paranoid checks. |
| 60 | Compares extra fields and other meta data. |
| 61 | (Automatically disabled if one of the archives is a directory.) |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 62 | .It Fl q |
| 63 | Quiet mode. |
| 64 | Compare |
| 65 | .Fl v . |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 66 | .It Fl t |
| 67 | Test zip files by comparing the contents to their checksums. |
| 68 | .It Fl V |
| 69 | Display version information and exit. |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 70 | .It Fl v |
| 71 | Verbose mode. |
| 72 | Print details about differences to stdout. |
Dieter Baron | 3014e88 | 2003-10-03 23:54:32 +0000 | [diff] [blame] | 73 | (This is the default.) |
Thomas Klausner | 05f8b98 | 2003-10-02 15:28:22 +0000 | [diff] [blame] | 74 | .El |
Dieter Baron | 9028826 | 2003-10-01 18:28:10 +0000 | [diff] [blame] | 75 | .Sh EXIT STATUS |
| 76 | .Nm |
Thomas Klausner | a191f7b | 2014-01-29 15:14:37 +0100 | [diff] [blame] | 77 | exits 0 if the two archives contain the same files, 1 if they differ, |
Dieter Baron | 9028826 | 2003-10-01 18:28:10 +0000 | [diff] [blame] | 78 | and \*[Gt]1 if an error occurred. |
Thomas Klausner | 9611d6b | 2005-06-09 18:50:16 +0000 | [diff] [blame] | 79 | .Sh SEE ALSO |
| 80 | .Xr zipmerge 1 , |
| 81 | .Xr libzip 3 |
Thomas Klausner | a456cf5 | 2005-06-09 21:13:13 +0000 | [diff] [blame] | 82 | .Sh AUTHORS |
| 83 | .An -nosplit |
Thomas Klausner | 0acbab4 | 2013-07-28 23:29:08 +0200 | [diff] [blame] | 84 | .An Dieter Baron Aq Mt dillo@nih.at |
Thomas Klausner | 7533013 | 2005-06-17 12:59:06 +0000 | [diff] [blame] | 85 | and |
Thomas Klausner | 0acbab4 | 2013-07-28 23:29:08 +0200 | [diff] [blame] | 86 | .An Thomas Klausner Aq Mt tk@giga.or.at |