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