Bump to 1.10.1
[platform/upstream/libzip.git] / man / zipmerge.man
1 .\" Automatically generated from an mdoc input file.  Do not edit.
2 .\" zipmerge.mdoc -- merge zip archives
3 .\" Copyright (C) 2004-2022 Dieter Baron and Thomas Klausner
4 .\"
5 .\" This file is part of libzip, a library to manipulate ZIP archives.
6 .\" The authors can be contacted at <info@libzip.org>
7 .\"
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
10 .\" are met:
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\"    notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\"    notice, this list of conditions and the following disclaimer in
15 .\"    the documentation and/or other materials provided with the
16 .\"    distribution.
17 .\" 3. The names of the authors may not be used to endorse or promote
18 .\"    products derived from this software without specific prior
19 .\"    written permission.
20 .\"
21 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
22 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
25 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
27 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
29 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
31 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 .\"
33 .TH "ZIPMERGE" "1" "December 5, 2022" "NiH" "General Commands Manual"
34 .nh
35 .if n .ad l
36 .SH "NAME"
37 \fBzipmerge\fR
38 \- merge zip archives
39 .SH "SYNOPSIS"
40 .HP 9n
41 \fBzipmerge\fR
42 [\fB\-DhIiSsV\fR]
43 \fItarget-zip\fR
44 \fIsource-zip\fR\ [\fIsource-zip\ ...\fR]
45 .SH "DESCRIPTION"
46 \fBzipmerge\fR
47 merges the source zip archives
48 \fIsource-zip\fR
49 into the target zip archive
50 \fItarget-zip\fR.
51 By default, files in the source zip archives overwrite
52 existing files of the same name in the target zip archive.
53 .PP
54 Supported options:
55 .TP 5n
56 \fB\-D\fR
57 Ignore directory components in file name comparisons.
58 This option is slow for archives with many files.
59 .TP 5n
60 \fB\-h\fR
61 Display a short help message and exit.
62 .TP 5n
63 \fB\-I\fR
64 Ignore case in file name comparisons
65 This option is slow for archives with many files.
66 .TP 5n
67 \fB\-i\fR
68 Ask before overwriting files.
69 See also
70 \fB\-s\fR.
71 .TP 5n
72 \fB\-k\fR
73 Do not compress files that were uncompressed in
74 \fIsource-zip\fR,
75 otherwise they are compressed with the default compression method.
76 .TP 5n
77 \fB\-S\fR
78 Do not overwrite files that have the same size and
79 CRC32 in both the source and target archives.
80 .TP 5n
81 \fB\-s\fR
82 When
83 \fB\-i\fR
84 is given, do not ask before overwriting files that have the same size
85 and CRC32.
86 .TP 5n
87 \fB\-V\fR
88 Display version information and exit.
89 .SH "EXIT STATUS"
90 \fBzipmerge\fR
91 exits 0 on success and >1 if an error occurred.
92 .SH "SEE ALSO"
93 zipcmp(1),
94 ziptool(1),
95 libzip(3)
96 .SH "HISTORY"
97 \fBzipmerge\fR
98 was added in libzip 0.6.
99 .SH "AUTHORS"
100 Dieter Baron <\fIdillo@nih.at\fR>
101 and
102 Thomas Klausner <\fItk@giga.or.at\fR>
103 .SH "CAVEATS"
104 \fBzipmerge\fR
105 uses one open file descriptor per zip archive.
106 If you need to merge a lot of zip archives, check your shell's
107 file descriptor ulimit and either increase it or run
108 \fBzipmerge\fR
109 multiple times with e.g. 1000 source zip archives each time.