1 .\" Hey, Emacs! This is -*-nroff-*- you know...
3 .\" pkgdata.1: manual page for the pkgdata utility
5 .\" Copyright (C) 2000-2009 IBM, Inc. and others.
7 .\" Manual page by Yves Arrouye <yves@realnames.com>.
8 .\" Modified by Michael Ow <mow@us.ibm.com>.
10 .TH PKGDATA 1 "6 February 2009" "ICU MANPAGE" "ICU @VERSION@ Manual"
13 \- package data for use by ICU
17 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
20 .BI "\-v\fP, \fB\-\-verbose"
23 .BR "\-c\fP, \fB\-\-copyright"
25 .BI "\-C\fP, \fB\-\-comment" " comment"
28 .BI "\-m\fP, \fB\-\-mode" " mode"
30 .BI "\-p\fP, \fB\-\-name" " name"
31 .BI "\-O\fP, \fB\-\-bldopt" " options"
33 .BI "\-e\fP, \fB\-\-entrypoint" " name"
36 .BI "\-r\fP, \fB\-\-revision" " version"
39 .BI "\-F\fP, \fB\-\-rebuild"
42 .BI "\-I\fP, \fB\-\-install"
45 .BI "\-s\fP, \fB\-\-sourcedir" " source"
48 .BI "\-d\fP, \fB\-\-destdir" " destination"
51 .BI "\-T\fP, \fB\-\-tempdir" " directory"
58 takes a set of data files and packages them for use by ICU or
59 applications that use ICU. The typical reason to package files using
61 is to make their distribution easier and their loading by ICU faster
62 and less consuming of limited system resources such as file
64 Packaged data also allow applications to be distributed with fewer
65 resource files, or even with none at all if they link against the
66 packaged data directly.
69 supports a few different methods of packaging data that serve
78 In this mode, the different data files are bundled together as an
79 architecture-dependent file that can later be memory mapped for use by
80 ICU. Data packaged using this mode will be looked up under the ICU
81 data directory. Such packaging is easy to use for applications resource
82 bundles, for example, as long as the application can install the
83 packaged file in the ICU data directory.
85 Another packaging mode is the
89 mode, where the data files are compiled into a shared library. ICU
90 used to be able to dynamically load these shared libraries, but as of
91 ICU 2.0, such support has been removed. This mode is still useful for
92 two main purposes: to build ICU itself, as the ICU data is packaged as
93 a shared library by default; and to build resource bundles that are
94 linked to the application that uses them. Such resource bundles can
95 then be placed anywhere where the system's dynamic linker will be
96 looking for shared libraries, instead of being forced to live inside
97 the ICU data directory.
101 packaging mode is similar to the shared library one except that it
102 produces a static library.
103 .\" Note that many platforms are not able to
104 .\" dynamically load symbols from static object files, so for this reason
105 .\" .BR udata_setAppData()
107 .\" to install this data. As a convenience, pkgdata will build a C source file
108 .\" and a header file. Given a data package named
109 .\" .IR name, in the output
110 .\" directory will be created
113 .\" .IR name .h with the single
115 .\" .BR "udata_install_\fcIname\fB(UErrorCode *err)" ,
120 .\" turned into a valid C identifier.
121 .\" The application need to call this function once. The error code returned
123 .\" .BR udata_setAppData() .
125 .\" Data pakackaged in a library, whether shared or static,
126 .\" Subsequently, the application can access this data by passing
129 .\" rgument to functions such as
130 .\" .BR Bures_open() .
136 mode which simply copies the data files instead of packaging
137 them as a single file or library. This mode is mainly intended to
138 provide support for building ICU before it is packaged as separate
139 small packages for distribution with operating systems such as Debian
140 GNU/Linux for example. Please refer to the packaging documentation in
141 the ICU source distribution for further information on the use of this
145 builds, packages, installs, or cleans the appropriate data based on the options given
146 without the need to call GNU
151 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
152 Print help about usage and exit.
154 .BR "\-v\fP, \fB\-\-verbose"
155 Display extra informative messages during execution.
157 .BR "\-c\fP, \fB\-\-copyright"
158 Include a copyright notice in the binary data.
160 .BI "\-C\fP, \fB\-\-comment" " comment"
161 Includes the specified
163 in the resulting data instead of the ICU copyright notice.
165 .BI "\-m\fP, \fB\-\-mode" " mode"
170 The different modes and their meaning are explained in the
172 section above. The valid mode names are
182 .BI "\-O\fP, \fB\-\-bldopt" " options"
183 Specify options for the builder. The builder is used internally by
185 to generate the correct packaged file. Such options include, but are
186 not limited to, setting variables used by
188 during the build of the packaged file. Note: If
190 is available, then this option is not needed.
192 .BI "\-p\fP, \fB\-\-name" " name"
193 Set the packaged file name to
195 This name is also used as the default entry point name after having
196 been turned into a valid C identifier.
198 .BI "\-e\fP, \fB\-\-entrypoint" " name"
199 Set the data entry point (used for linking against the data in a
200 shared library form) to
202 The default entry point name is the name set by the
203 .BI "\-n\fP, \fB\-\-name"
206 .BI "\-r\fP, \fB\-\-revision" " version"
207 Enable versioning of the shared library produced in
211 mode. The version number has the format
212 .I major\fP.\fIminor\fP.\fIpatchlevel
213 and all parts except for
215 are optional. If only
217 is supplied then the version is
220 for versioning purposes.
222 .BI "\-F\fP, \fB\-\-rebuild"
223 Force the rebuilding of all data and their repackaging.
225 .BI "\-I\fP, \fB\-\-install"
226 Install the packaged file (or all the files in the
228 mode). If the variable
230 is set it will be used for installation.
232 .BI "\-s\fP, \fB\-\-sourcedir" " source"
233 Set the source directory to
235 The default source directory is the current directory.
237 .BI "\-d\fP, \fB\-\-destdir" " destination"
238 Set the destination directory to
240 The default destination directory is the current directory.
242 .BI "\-T\fP, \fB\-\-tempdir" " directory"
243 Set the directory used to generate temporary files to
245 The default temporary directory is the same as the destination
248 .BI "\-d\fP, \fB\-\-destdir"
257 Copyright (C) 2000-2009 IBM, Inc. and others.