1 .\" Hey, Emacs! This is -*-nroff-*- you know...
3 .\" icupkg.1: manual page for the icupkg utility
5 .\" Copyright (C) 2000-2006 IBM, Inc. and others.
7 .TH ICUPKG 1 "18 August 2006" "ICU MANPAGE" "ICU @VERSION@ Manual"
10 \- extract or modify an ICU
16 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
19 .BR "\-tl\fP, \fB\-\-type" " l"
21 .BR "\-tb\fP, \fB\-\-type" " b"
23 .BR "\-te\fP, \fB\-\-type" " e"
26 .BR "\-c\fP, \fB\-\-copyright"
28 .BI "\-C\fP, \fB\-\-comment" " comment"
31 .BI "\-a\fP, \fB\-\-add" " list"
34 .BI "\-r\fP, \fB\-\-remove" " list"
37 .BI "\-x\fP, \fB\-\-extract" " list"
40 .BI "\-l\fP, \fB\-\-list"
43 .BI "\-s\fP, \fB\-\-sourcedir" " source"
46 .BI "\-d\fP, \fB\-\-destdir" " destination"
49 .BI "\-w\fP, \fB\-\-writepkg"
52 .BI "\-m\fP, \fB\-\-matchmode" " mode"
62 package file, modify it according to the options,
63 swap it to the desired platform properties (charset & endianness),
64 and optionally write the resulting ICU
66 package to the output file.
67 Items are removed, then added, then extracted and listed.
70 package is written if items are removed or added,
71 or if the input and output filenames differ,
73 .BR "\-w\fP, \fB\-\-writepkg"
76 If the input filename is "new" then an empty package is created.
77 If the output filename is missing, then it is automatically generated
78 from the input filename. If the input filename ends with an l, b, or e
79 matching its platform properties, then the output filename will
80 contain the letter from the
81 .BI "\-t\fP, \fB\-\-type"
84 This tool can also be used to just swap a single ICU data file, replacing the
85 former icuswap tool. For this mode, provide the infilename (and optional
86 outfilename) for a non-package ICU data file.
87 Allowed options include
88 .BI "\-t\fP, \fB\-w\fP, \fB\-s\fP"
92 The filenames can be absolute, or relative to the source/dest dir paths.
93 Other options are not allowed in this mode.
96 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
97 Print help about usage and exit.
99 .BI "\-tl\fP, \fB\-\-type" " l"
100 Output for little-endian/ASCII charset family.
101 The output type defaults to the input type.
103 .BI "\-tb\fP, \fB\-\-type" " b"
104 Output for big-endian/ASCII charset family.
105 The output type defaults to the input type.
107 .BI "\-te\fP, \fB\-\-type" " e"
108 Output for big-endian/EBCDIC charset family.
109 The output type defaults to the input type.
111 .BR \-c\fP, \fB\-\-copyright
112 Include the ICU copyright notice in the resulting data.
114 .BI "\-C\fP, \fB\-\-comment" " comment"
115 Include the specified
117 in the resulting data instead of the ICU copyright notice.
119 .BI "\-a\fP, \fB\-\-add" " list"
122 to the package. The list can be a single filename with a
124 file extension containing a list of item filenames, or an ICU
128 .BI "\-r\fP, \fB\-\-remove" " list"
129 Remove items from the
131 from the package. The list can be a single filename with a
133 file extension containing a list of item filenames, or an ICU
137 .BI "\-x\fP, \fB\-\-extract" " list"
138 Extract items from the
140 from the package. The list can be a single filename with a
142 file extension containing a list of item filenames, or an ICU
146 .BI "\-m\fP, \fB\-\-matchmode" " mode"
147 Set the matching mode for item names with wildcards.
149 .BI "\-s\fP, \fB\-\-sourcedir" " source"
150 Set the source directory to
152 The default source directory is the current directory.
154 .BI "\-d\fP, \fB\-\-destdir" " destination"
155 Set the destination directory to
157 The default destination directory is the current directory.
159 .BI "\-l\fP, \fB\-\-list"
160 List the package items to stdout (after modifying the package).
162 Items are listed on one or more lines and separated by whitespace (space+tab).
165 and are ignored. Empty lines are ignored. Lines where the first non-whitespace
166 character is one of "%&'()*+,-./:;<=>?_ are also ignored
167 to reserve for future syntax.
169 Items for removal or extraction may contain a single
171 wildcard character. The
173 matches zero or more characters. If
174 .BI "\-m\fP, \fB\-\-matchmode" " noslash"
177 character does not match the
181 Items must be listed relative to the package, and the
182 .B "\fB\-\-sourcedir"
185 path will be prepended. The paths are only prepended to item
186 filenames while adding or extracting items, not to ICU .dat package or list
191 instead of the platform's file separator character and are converted as
200 Copyright (C) 2006 IBM, Inc. and others.