1 .\" Hey, Emacs! This is -*-nroff-*- you know...
3 .\" pkgdata.1: manual page for the pkgdata utility
5 .\" Copyright (C) 2000-2003 IBM, Inc. and others.
7 .\" Manual page by Yves Arrouye <yves@realnames.com>.
8 .\" Modified by Steven R. Loomis <srl@jtcsv.com>.
10 .TH PKGDATA 1 "16 April 2002" "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"
42 .BI "\-F\fP, \fB\-\-rebuild"
45 .BI "\-k\fP, \fB\-\-clean"
48 .BI "\-I\fP, \fB\-\-install"
51 .BI "\-n\fP, \fB\-\-nooutput"
54 .BI "\-N\fP, \fB\-\-numaric"
57 .BI "\-s\fP, \fB\-\-sourcedir" " source"
60 .BI "\-d\fP, \fB\-\-destdir" " destination"
63 .BI "\-T\fP, \fB\-\-tempdir" " directory"
70 takes a set of data files and packages them for use by ICU or
71 applications that use ICU. The typical reason to package files using
73 is to make their distribution easier and their loading by ICU faster
74 and less consuming of limited system resources such as file
76 Packaged data also allow applications to be distributed with fewer
77 resource files, or even with none at all if they link against the
78 packaged data directly.
81 supports a few different methods of packaging data that serve
90 In this mode, the different data files are bundled together as an
91 architecture-dependent file that can later be memory mapped for use by
92 ICU. Data packaged using this mode will be looked up under the ICU
93 data directory. Such packaging is easy to use for applications resource
94 bundles, for example, as long as the application can install the
95 packaged file in the ICU data directory.
97 Another packaging mode is the
101 mode, where the data files are compiled into a shared library. ICU
102 used to be able to dynamically load these shared libraries, but as of
103 ICU 2.0, such support has been removed. This mode is still useful for
104 two main purposes: to build ICU itself, as the ICU data is packaged as
105 a shared library by default; and to build resource bundles that are
106 linked to the application that uses them. Such resource bundles can
107 then be placed anywhere where the system's dynamic linker will be
108 looking for shared libraries, instead of being forced to live inside
109 the ICU data directory.
113 packaging mode is similar to the shared library one except that it
114 produces a static library.
115 .\" Note that many platforms are not able to
116 .\" dynamically load symbols from static object files, so for this reason
117 .\" .BR udata_setAppData()
119 .\" to install this data. As a convenience, pkgdata will build a C source file
120 .\" and a header file. Given a data package named
121 .\" .IR name, in the output
122 .\" directory will be created
125 .\" .IR name .h with the single
127 .\" .BR "udata_install_\fcIname\fB(UErrorCode *err)" ,
132 .\" turned into a valid C identifier.
133 .\" The application need to call this function once. The error code returned
135 .\" .BR udata_setAppData() .
137 .\" Data pakackaged in a library, whether shared or static,
138 .\" Subsequently, the application can access this data by passing
141 .\" rgument to functions such as
142 .\" .BR Bures_open() .
148 mode which simply copies the data files instead of packaging
149 them as a single file or library. This mode is mainly intended to
150 provide support for building ICU before it is packaged as separate
151 small packages for distribution with operating systems such as Debian
152 GNU/Linux for example. Please refer to the packaging documentation in
153 the ICU source distribution for further information on the use of this
159 to do the packaging, and generates a makefile with rules to build,
160 package, install, or clean the appropriate data.
163 .BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
164 Print help about usage and exit.
166 .BR "\-v\fP, \fB\-\-verbose"
167 Display extra informative messages during execution.
169 .BR "\-c\fP, \fB\-\-copyright"
170 Include a copyright notice in the binary data.
172 .BI "\-C\fP, \fB\-\-comment" " comment"
173 Includes the specified
175 in the resulting data instead of the ICU copyright notice.
177 .BI "\-m\fP, \fB\-\-mode" " mode"
182 The different modes and their meaning are explained in the
184 section above. The valid mode names are
194 .BI "\-O\fP, \fB\-\-bldopt" " options"
195 Specify options for the builder. The builder is used internally by
197 to generate the correct packaged file. Such options include, but are
198 not limited to, setting variables used by
200 during the build of the packaged file. Note: If
202 is available, then this option is not needed.
204 .BI "\-p\fP, \fB\-\-name" " name"
205 Set the packaged file name to
207 This name is also used as the default entry point name after having
208 been turned into a valid C identifier.
210 .BI "\-e\fP, \fB\-\-entrypoint" " name"
211 Set the data entry point (used for linking against the data in a
212 shared library form) to
214 The default entry point name is the name set by the
215 .BI "\-n\fP, \fB\-\-name"
218 .BI "\-r\fP, \fB\-\-revision" " version"
219 Enable versioning of the shared library produced in
223 mode. The version number has the format
224 .I major\fP.\fIminor\fP.\fIpatchlevel
225 and all parts except for
227 are optional. If only
229 is supplied then the version is
232 for versioning purposes.
240 .BI "\-F\fP, \fB\-\-rebuild"
241 Force the rebuilding of all data and their repackaging.
243 .BI "\-k\fP, \fB\-\-clean"
244 Clean temporary files and other build residues.
246 .BI "\-I\fP, \fB\-\-install"
247 Install the packaged file (or all the files in the
249 mode). If the variable
251 is set it will be used for installation.
253 .BI "\-n\fP, \fB\-\-nooutput"
254 Do not produce any output but simply a list of affected files.
256 .BI "\-N\fP, \fB\-\-numeric"
257 Instead of using temporary filenames similar to the input symbols, use numeric filenames such
258 as t0002.c, etc. May be needed for systems which don't allow many similar long filenames, or
259 for systems that tend to run out of argument space. Note, using this option
260 implies "\-F\fP, \fB\-\-rebuild" - all packaging will be rebuilt every time pkgdata is run.
262 .BI "\-s\fP, \fB\-\-sourcedir" " source"
263 Set the source directory to
265 The default source directory is the current directory.
267 .BI "\-d\fP, \fB\-\-destdir" " destination"
268 Set the destination directory to
270 The default destination directory is the current directory.
272 .BI "\-T\fP, \fB\-\-tempdir" " directory"
273 Set the directory used to generate temporary files to
275 The default temporary directory is the same as the destination
278 .BI "\-d\fP, \fB\-\-destdir"
287 Copyright (C) 2000-2003 IBM, Inc. and others.