~ubuntu-branches/ubuntu/quantal/icu/quantal

« back to all changes in this revision

Viewing changes to source/tools/pkgdata/pkgdata.8.in

  • Committer: Package Import Robot
  • Author(s): Yves Arrouye
  • Date: 2002-03-03 15:31:13 UTC
  • Revision ID: package-import@ubuntu.com-20020303153113-3ssceqlq45xbmbnc
Tags: upstream-2.0-2.1pre20020303
ImportĀ upstreamĀ versionĀ 2.0-2.1pre20020303

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" Hey, Emacs! This is -*-nroff-*- you know...
 
2
.\"
 
3
.\" pkgdata.8: manual page for the pkgdata utility
 
4
.\"
 
5
.\" Copyright (C) 2000-2002 IBM, Inc. and others.
 
6
.\"
 
7
.\" Manual page by Yves Arrouye <yves@realnames.com>.
 
8
.\" Modified by Steven R. Loomis <srl@jtcsv.com>
 
9
.\"
 
10
.TH PKGDATA 8 "1 March 2002" "ICU MANPAGE" "ICU @VERSION@ Manual"
 
11
.SH NAME
 
12
.B pkgdata
 
13
\- package data for use by ICU
 
14
.SH SYNOPSIS
 
15
.B pkgdata
 
16
[
 
17
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
 
18
]
 
19
[
 
20
.BI "\-v\fP, \fB\-\-verbose"
 
21
]
 
22
[
 
23
.BR "\-c\fP, \fB\-\-copyright"
 
24
|
 
25
.BI "\-C\fP, \fB\-\-comment" " comment"
 
26
]
 
27
[
 
28
.BI "\-m\fP, \fB\-\-mode" " mode"
 
29
]
 
30
.BI "\-p\fP, \fB\-\-name" " name"
 
31
.BI "\-O\fP, \fB\-\-bldopt" " options"
 
32
[
 
33
.BI "\-e\fP, \fB\-\-entrypoint" " name"
 
34
]
 
35
[
 
36
.BI "\-r\fP, \fB\-\-revision" " version"
 
37
]
 
38
[
 
39
.BI "\-M" " arg"
 
40
]
 
41
[
 
42
.BI "\-F\fP, \fB\-\-rebuild"
 
43
]
 
44
[
 
45
.BI "\-k\fP, \fB\-\-clean"
 
46
]
 
47
[
 
48
.BI "\-I\fP, \fB\-\-install"
 
49
]
 
50
[
 
51
.BI "\-n\fP, \fB\-\-nooutput"
 
52
]
 
53
[
 
54
.BI "\-s\fP, \fB\-\-sourcedir" " source"
 
55
]
 
56
[
 
57
.BI "\-d\fP, \fB\-\-destdir" " destination"
 
58
]
 
59
[
 
60
.BI "\-T\fP, \fB\-\-tempdir" " directory"
 
61
]
 
62
[
 
63
.IR file " .\|.\|."
 
64
]
 
65
.SH DESCRIPTION
 
66
.B pkgdata
 
67
takes a set of data files and packages them for use by ICU or
 
68
applications that use ICU. The typical reason to package files using
 
69
.B pkgdata
 
70
is to make their distribution easier.
 
71
.PP
 
72
.B pkgdata
 
73
supports a few different methods of packaging data that serve
 
74
different purposes.
 
75
.PP
 
76
The default packaging
 
77
.I mode
 
78
is
 
79
.BR common ,
 
80
or
 
81
.BR archive .
 
82
In this mode, the different data files are bundled together as an
 
83
architecture-dependent file that can later be memory mapped for use by
 
84
ICU. Data packaged using this mode will be looked up under the ICU
 
85
data directory. Such packaging is easy to use for applications resource
 
86
bundles, for example, as long as the application can install the
 
87
packaged file in the ICU data directory.
 
88
.PP
 
89
Another packaging mode is the
 
90
.BR dll ,
 
91
or
 
92
.BR library ,
 
93
mode, where the data files are compiled into a shared library. ICU
 
94
used to be able to dynamically load these shared libraries, but as of
 
95
ICU 2.0, such support has been removed. This mode is still useful for
 
96
two main purposes: to build ICU itself, as the ICU data is packaged as
 
97
a shared library by default; and to build resource bundles that are
 
98
linked to the application that uses them. Such resource bundles can
 
99
then be placed anywhere where the system's dynamic linker will be
 
100
looking for shared libraries, instead of being forced to live inside
 
101
the ICU data directory.
 
102
.PP
 
103
The
 
104
.BR static
 
105
packaging mode is similar to dll or library, however it produces a
 
106
static library.  Note that many platforms are not able to dynamically load 
 
107
symbols from static object files, so for this reason 
 
108
.BR udata_setAppData() 
 
109
must be called
 
110
to install this data.  As a convenience, pkgdata will build a C source file
 
111
and a header file. Given a data package named "\fIname\fP", in the output 
 
112
directory will be created \fIname\fR.c and \fIname\fR.h with the single
 
113
function \fBudata_install_\fIname\fB(UErrorCode *err)\fR. Call this function
 
114
once early in the program. The error code returned is that of \fBudata_setAppData()\fP.
 
115
Subsequently, the application can access this data by passing "\fIname\fP" for the "path"
 
116
argument to functions such as \fBures_open()\fP.
 
117
 
 
118
 
 
119
.PP
 
120
Finally,
 
121
.B pkgdata
 
122
supports a
 
123
.B files
 
124
mode which simply copies the data files instead of packaging
 
125
them as a single file or library. This mode is mainly intended to
 
126
provide support for building ICU before it is packaged as separate
 
127
small packages for distribution with operating systems such as Debian
 
128
GNU/Linux for example. Please refer to the packaging documentation in
 
129
the ICU source distribution for further information on the use of this
 
130
mode.
 
131
.PP
 
132
.B pkgdata
 
133
relies on GNU
 
134
.BR make (1)
 
135
to do the packaging, and generates a makefile with rules to build
 
136
and package the correct data.
 
137
.SH OPTIONS
 
138
.TP
 
139
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
 
140
Print help about usage and exit.
 
141
.TP
 
142
.BR "\-v\fP, \fB\-\-verbose"
 
143
Display extra informative messages during execution.
 
144
.TP
 
145
.BR "\-c\fP, \fB\-\-copyright"
 
146
Include a copyright notice in the binary data.
 
147
.TP
 
148
.BI "\-C\fP, \fB\-\-comment" " comment"
 
149
Includes the specified
 
150
.I comment
 
151
in the resulting data instead of the ICU copyright notice. 
 
152
.TP
 
153
.BI "\-m\fP, \fB\-\-mode" " mode"
 
154
Set the packaging
 
155
.I mode
 
156
to be used by 
 
157
.BR pkgdata .
 
158
The different modes and their meaning are explained in the
 
159
.B DESCRIPTION
 
160
section above. The valid mode names are
 
161
.BR common
 
162
(or
 
163
.BR archive ),
 
164
.BR dll
 
165
(or
 
166
.BR library ),
 
167
and
 
168
.BR files .
 
169
.TP
 
170
.BI "\-O\fP, \fB\-\-bldopt" " options"
 
171
Specify options for the builder. The builder is used internally by
 
172
.B pkgdata
 
173
to generate the correct packaged file. Such options include, but are
 
174
not limited to, setting variables used by
 
175
.BR make (1)
 
176
during the build of the packaged file.
 
177
.TP
 
178
.BI "\-p\fP, \fB\-\-name" " name"
 
179
Set the packaged file name to
 
180
.IR name .
 
181
This name is also used as the default entry point name.
 
182
.TP
 
183
.BI "\-e\fP, \fB\-\-entrypoint" " name"
 
184
Set the data entry point (used for linking against the data in a
 
185
shared library form) to
 
186
.IR name .
 
187
The default entry point name is the name set by the
 
188
.BI "\-n\fP, \fB\-\-name"
 
189
option.
 
190
.TP
 
191
.BI "\-r\fP, \fB\-\-revision" " version"
 
192
Enable versioning of the shared library produced in
 
193
.I dll
 
194
mode. The version number has the format
 
195
.I major\fP.\fIminor\fP.\fIpatchlevel
 
196
and all parts except for
 
197
.I major
 
198
are optional. If only
 
199
.I major
 
200
is supplied then the version is
 
201
assumed to be
 
202
.IR major .0
 
203
for versioning purposes.
 
204
.TP
 
205
.BI "\-M" " arg"
 
206
Pass
 
207
.I arg
 
208
to 
 
209
.BR make (1).
 
210
.TP
 
211
.BI "\-F\fP, \fB\-\-rebuild"
 
212
Force the rebuilding of all data and their repackaging.
 
213
.TP
 
214
.BI "\-k\fP, \fB\-\-clean"
 
215
Clean temporary files and other build residues.
 
216
.TP
 
217
.BI "\-I\fP, \fB\-\-install"
 
218
Install the packaged file (or all the files in the
 
219
.B files
 
220
mode). If the variable
 
221
.B DESTDIR
 
222
is set it will be used for installation.
 
223
.TP
 
224
.BI "\-n\fP, \fB\-\-nooutput"
 
225
Do not produce any output but simply a list of affected files.
 
226
.TP
 
227
.BI "\-s\fP, \fB\-\-sourcedir" " source"
 
228
Set the source directory to
 
229
.IR source .
 
230
The default source directory is the current directory.
 
231
.TP
 
232
.BI "\-d\fP, \fB\-\-destdir" " destination"
 
233
Set the destination directory to
 
234
.IR destination .
 
235
The default destination directory is the current directory.
 
236
.TP
 
237
.BI "\-T\fP, \fB\-\-tempdir" " directory"
 
238
Set the directory used to generate temporary files to
 
239
.IR directory .
 
240
The default temporary directory is the same as the destination
 
241
directory
 
242
as set by the
 
243
.BI "\-d\fP, \fB\-\-destdir"
 
244
option.
 
245
.SH VERSION
 
246
@VERSION@
 
247
.SH COPYRIGHT
 
248
Copyright (C) 2000-2001 IBM, Inc. and others.
 
249