1 .\" Hey, Emacs! This is -*-nroff-*- you know...
3 .\" icupkg.8: manual page for the icupkg utility
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.
9 .TH ICUPKG 8 "18 August 2006" "ICU MANPAGE" "ICU @VERSION@ Manual"
12 \- extract or modify an ICU
18 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
21 .BR "\-tl\fP, \fB\-\-type" " l"
23 .BR "\-tb\fP, \fB\-\-type" " b"
25 .BR "\-te\fP, \fB\-\-type" " e"
28 .BR "\-c\fP, \fB\-\-copyright"
30 .BI "\-C\fP, \fB\-\-comment" " comment"
33 .BI "\-a\fP, \fB\-\-add" " list"
36 .BI "\-r\fP, \fB\-\-remove" " list"
39 .BI "\-x\fP, \fB\-\-extract" " list"
42 .BI "\-l\fP, \fB\-\-list"
45 .BI "\-s\fP, \fB\-\-sourcedir" " source"
48 .BI "\-d\fP, \fB\-\-destdir" " destination"
51 .BI "\-w\fP, \fB\-\-writepkg"
54 .BI "\-m\fP, \fB\-\-matchmode" " mode"
64 package file, modify it according to the options,
65 swap it to the desired platform properties (charset & endianness),
66 and optionally write the resulting ICU
68 package to the output file.
69 Items are removed, then added, then extracted and listed.
72 package is written if items are removed or added,
73 or if the input and output filenames differ,
75 .BR "\-w\fP, \fB\-\-writepkg"
78 If the input filename is "new" then an empty package is created.
79 If the output filename is missing, then it is automatically generated
80 from the input filename. If the input filename ends with an l, b, or e
81 matching its platform properties, then the output filename will
82 contain the letter from the
83 .BI "\-t\fP, \fB\-\-type"
86 This tool can also be used to just swap a single ICU data file, replacing the
87 former icuswap tool. For this mode, provide the infilename (and optional
88 outfilename) for a non-package ICU data file.
89 Allowed options include
90 .BI "\-t\fP, \fB\-w\fP, \fB\-s\fP"
94 The filenames can be absolute, or relative to the source/dest dir paths.
95 Other options are not allowed in this mode.
98 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
99 Print help about usage and exit.
101 .BI "\-tl\fP, \fB\-\-type" " l"
102 Output for little-endian/ASCII charset family.
103 The output type defaults to the input type.
105 .BI "\-tb\fP, \fB\-\-type" " b"
106 Output for big-endian/ASCII charset family.
107 The output type defaults to the input type.
109 .BI "\-te\fP, \fB\-\-type" " e"
110 Output for big-endian/EBCDIC charset family.
111 The output type defaults to the input type.
113 .BR \-c\fP, \fB\-\-copyright
114 Include the ICU copyright notice in the resulting data.
116 .BI "\-C\fP, \fB\-\-comment" " comment"
117 Include the specified
119 in the resulting data instead of the ICU copyright notice.
121 .BI "\-a\fP, \fB\-\-add" " list"
124 to the package. The list can be a single filename with a
126 file extension containing a list of item filenames, or an ICU
130 .BI "\-r\fP, \fB\-\-remove" " list"
131 Remove items from the
133 from the package. The list can be a single filename with a
135 file extension containing a list of item filenames, or an ICU
139 .BI "\-x\fP, \fB\-\-extract" " list"
140 Extract items from the
142 from the package. The list can be a single filename with a
144 file extension containing a list of item filenames, or an ICU
148 .BI "\-m\fP, \fB\-\-matchmode" " mode"
149 Set the matching mode for item names with wildcards.
151 .BI "\-s\fP, \fB\-\-sourcedir" " source"
152 Set the source directory to
154 The default source directory is the current directory.
156 .BI "\-d\fP, \fB\-\-destdir" " destination"
157 Set the destination directory to
159 The default destination directory is the current directory.
161 .BI "\-l\fP, \fB\-\-list"
162 List the package items to stdout (after modifying the package).
164 Items are listed on one or more lines and separated by whitespace (space+tab).
167 and are ignored. Empty lines are ignored. Lines where the first non-whitespace
168 character is one of "%&'()*+,-./:;<=>?_ are also ignored
169 to reserve for future syntax.
171 Items for removal or extraction may contain a single
173 wildcard character. The
175 matches zero or more characters. If
176 .BI "\-m\fP, \fB\-\-matchmode" " noslash"
179 character does not match the
183 Items must be listed relative to the package, and the
184 .B "\fB\-\-sourcedir"
187 path will be prepended. The paths are only prepended to item
188 filenames while adding or extracting items, not to ICU .dat package or list
193 instead of the platform's file separator character and are converted as
202 Copyright (C) 2006 IBM, Inc. and others.