]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/icupkg/icupkg.8.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / tools / icupkg / icupkg.8.in
CommitLineData
73c04bcf
A
1.\" Hey, Emacs! This is -*-nroff-*- you know...
2.\"
3.\" icupkg.8: manual page for the icupkg utility
4.\"
5.\" Copyright (C) 2000-2006 IBM, Inc. and others.
6.\"
7.TH ICUPKG 8 "18 August 2006" "ICU MANPAGE" "ICU @VERSION@ Manual"
8.SH NAME
9.B icupkg
10\- extract or modify an ICU
11.B .dat
12archive
13.SH SYNOPSIS
14.B icupkg
15[
16.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
17]
18[
19.BR "\-tl\fP, \fB\-\-type" " l"
20|
21.BR "\-tb\fP, \fB\-\-type" " b"
22|
23.BR "\-te\fP, \fB\-\-type" " e"
24]
25[
26.BR "\-c\fP, \fB\-\-copyright"
27|
28.BI "\-C\fP, \fB\-\-comment" " comment"
29]
30[
31.BI "\-a\fP, \fB\-\-add" " list"
32]
33[
34.BI "\-r\fP, \fB\-\-remove" " list"
35]
36[
37.BI "\-x\fP, \fB\-\-extract" " list"
38]
39[
40.BI "\-l\fP, \fB\-\-list"
41]
42[
43.BI "\-s\fP, \fB\-\-sourcedir" " source"
44]
45[
46.BI "\-d\fP, \fB\-\-destdir" " destination"
47]
48[
49.BI "\-w\fP, \fB\-\-writepkg"
50]
51[
52.BI "\-m\fP, \fB\-\-matchmode" " mode"
53]
54.IR infilename
55[
56.BI "outfilename"
57]
58.SH DESCRIPTION
59.B icupkg
60reads the input ICU
61.B .dat
62package file, modify it according to the options,
63swap it to the desired platform properties (charset & endianness),
64and optionally write the resulting ICU
65.B .dat
66package to the output file.
67Items are removed, then added, then extracted and listed.
68An ICU
69.B .dat
70package is written if items are removed or added,
71or if the input and output filenames differ,
72or if the
73.BR "\-w\fP, \fB\-\-writepkg"
74option is set.
75.PP
76If the input filename is "new" then an empty package is created.
77If the output filename is missing, then it is automatically generated
78from the input filename. If the input filename ends with an l, b, or e
79matching its platform properties, then the output filename will
80contain the letter from the
81.BI "\-t\fP, \fB\-\-type"
82option.
83.PP
84This tool can also be used to just swap a single ICU data file, replacing the
85former icuswap tool. For this mode, provide the infilename (and optional
86outfilename) for a non-package ICU data file.
87Allowed options include
88.BI "\-t\fP, \fB\-w\fP, \fB\-s\fP"
89and
90.BI \-d
91.
92The filenames can be absolute, or relative to the source/dest dir paths.
93Other options are not allowed in this mode.
94.SH OPTIONS
95.TP
96.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
97Print help about usage and exit.
98.TP
99.BI "\-tl\fP, \fB\-\-type" " l"
100Output for little-endian/ASCII charset family.
101The output type defaults to the input type.
102.TP
103.BI "\-tb\fP, \fB\-\-type" " b"
104Output for big-endian/ASCII charset family.
105The output type defaults to the input type.
106.TP
107.BI "\-te\fP, \fB\-\-type" " e"
108Output for big-endian/EBCDIC charset family.
109The output type defaults to the input type.
110.TP
111.BR \-c\fP, \fB\-\-copyright
112Include the ICU copyright notice in the resulting data.
113.TP
114.BI "\-C\fP, \fB\-\-comment" " comment"
115Include the specified
116.I comment
117in the resulting data instead of the ICU copyright notice.
118.TP
119.BI "\-a\fP, \fB\-\-add" " list"
120Add items from the
121.I list
122to the package. The list can be a single filename with a
123.B .txt
124file extension containing a list of item filenames, or an ICU
125.B .dat
126package filename.
127.TP
128.BI "\-r\fP, \fB\-\-remove" " list"
129Remove items from the
130.I list
131from the package. The list can be a single filename with a
132.B .txt
133file extension containing a list of item filenames, or an ICU
134.B .dat
135package filename.
136.TP
137.BI "\-x\fP, \fB\-\-extract" " list"
138Extract items from the
139.I list
140from the package. The list can be a single filename with a
141.B .txt
142file extension containing a list of item filenames, or an ICU
143.B .dat
144package filename.
145.TP
146.BI "\-m\fP, \fB\-\-matchmode" " mode"
147Set the matching mode for item names with wildcards.
148.TP
149.BI "\-s\fP, \fB\-\-sourcedir" " source"
150Set the source directory to
151.IR source .
152The default source directory is the current directory.
153.TP
154.BI "\-d\fP, \fB\-\-destdir" " destination"
155Set the destination directory to
156.IR destination .
157The default destination directory is the current directory.
158.TP
159.BI "\-l\fP, \fB\-\-list"
160List the package items to stdout (after modifying the package).
161.SH LIST FILE SYNTAX
162Items are listed on one or more lines and separated by whitespace (space+tab).
163Comments begin with
164.B #
165and are ignored. Empty lines are ignored. Lines where the first non-whitespace
166character is one of "%&'()*+,-./:;<=>?_ are also ignored
167to reserve for future syntax.
168.PP
169Items for removal or extraction may contain a single
170.B *
171wildcard character. The
172.B *
173matches zero or more characters. If
174.BI "\-m\fP, \fB\-\-matchmode" " noslash"
175is set, then the
176.B *
177character does not match the
178.B /
179character.
180.PP
181Items must be listed relative to the package, and the
182.B "\fB\-\-sourcedir"
183or the
184.B "\fB\-\-destdir"
185path will be prepended. The paths are only prepended to item
186filenames while adding or extracting items, not to ICU .dat package or list
187filenames.
188.PP
189Paths may contain
190.B /
191instead of the platform's file separator character and are converted as
192appropriate.
193.SH AUTHORS
194Markus Scherer
195.br
196George Rhoten
197.SH VERSION
1981.0
199.SH COPYRIGHT
200Copyright (C) 2006 IBM, Inc. and others.
201.SH SEE ALSO
202.BR pkgdata (1)
203.BR genrb (1)
204