2001-12-21 01:46:10 +00:00
|
|
|
.\" Hey, Emacs! This is -*-nroff-*- you know...
|
|
|
|
.\"
|
2002-04-18 03:06:00 +00:00
|
|
|
.\" pkgdata.1: manual page for the pkgdata utility
|
2001-12-21 01:46:10 +00:00
|
|
|
.\"
|
2002-03-01 22:43:48 +00:00
|
|
|
.\" Copyright (C) 2000-2002 IBM, Inc. and others.
|
2001-12-21 01:46:10 +00:00
|
|
|
.\"
|
|
|
|
.\" Manual page by Yves Arrouye <yves@realnames.com>.
|
2002-03-22 09:35:03 +00:00
|
|
|
.\" Modified by Steven R. Loomis <srl@jtcsv.com>.
|
2001-12-21 01:46:10 +00:00
|
|
|
.\"
|
2002-04-18 03:06:00 +00:00
|
|
|
.TH PKGDATA 1 "16 April 2002" "ICU MANPAGE" "ICU @VERSION@ Manual"
|
2001-12-21 01:46:10 +00:00
|
|
|
.SH NAME
|
|
|
|
.B pkgdata
|
|
|
|
\- package data for use by ICU
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B pkgdata
|
|
|
|
[
|
|
|
|
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
|
|
|
|
]
|
|
|
|
[
|
2001-12-21 02:52:39 +00:00
|
|
|
.BI "\-v\fP, \fB\-\-verbose"
|
|
|
|
]
|
|
|
|
[
|
2001-12-21 01:46:10 +00:00
|
|
|
.BR "\-c\fP, \fB\-\-copyright"
|
|
|
|
|
|
|
|
|
.BI "\-C\fP, \fB\-\-comment" " comment"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-m\fP, \fB\-\-mode" " mode"
|
|
|
|
]
|
|
|
|
.BI "\-p\fP, \fB\-\-name" " name"
|
|
|
|
.BI "\-O\fP, \fB\-\-bldopt" " options"
|
|
|
|
[
|
|
|
|
.BI "\-e\fP, \fB\-\-entrypoint" " name"
|
|
|
|
]
|
|
|
|
[
|
2002-01-17 21:17:49 +00:00
|
|
|
.BI "\-r\fP, \fB\-\-revision" " version"
|
2001-12-21 01:46:10 +00:00
|
|
|
]
|
|
|
|
[
|
2002-01-29 23:33:03 +00:00
|
|
|
.BI "\-M" " arg"
|
|
|
|
]
|
|
|
|
[
|
2001-12-21 01:46:10 +00:00
|
|
|
.BI "\-F\fP, \fB\-\-rebuild"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-k\fP, \fB\-\-clean"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-I\fP, \fB\-\-install"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-n\fP, \fB\-\-nooutput"
|
|
|
|
]
|
|
|
|
[
|
2001-12-21 02:52:39 +00:00
|
|
|
.BI "\-s\fP, \fB\-\-sourcedir" " source"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-d\fP, \fB\-\-destdir" " destination"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-T\fP, \fB\-\-tempdir" " directory"
|
|
|
|
]
|
|
|
|
[
|
2001-12-21 01:46:10 +00:00
|
|
|
.IR file " .\|.\|."
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B pkgdata
|
|
|
|
takes a set of data files and packages them for use by ICU or
|
|
|
|
applications that use ICU. The typical reason to package files using
|
|
|
|
.B pkgdata
|
2002-03-22 09:35:03 +00:00
|
|
|
is to make their distribution easier and their loading by ICU faster
|
|
|
|
and less consuming of limited system resources such as file
|
|
|
|
descriptors.
|
|
|
|
Packaged data also allow applications to be distributed with fewer
|
|
|
|
resource files, or even with none at all if they link against the
|
|
|
|
packaged data directly.
|
2001-12-21 01:46:10 +00:00
|
|
|
.PP
|
|
|
|
.B pkgdata
|
|
|
|
supports a few different methods of packaging data that serve
|
|
|
|
different purposes.
|
|
|
|
.PP
|
|
|
|
The default packaging
|
|
|
|
.I mode
|
|
|
|
is
|
2001-12-21 20:09:18 +00:00
|
|
|
.BR common ,
|
|
|
|
or
|
|
|
|
.BR archive .
|
2001-12-21 01:46:10 +00:00
|
|
|
In this mode, the different data files are bundled together as an
|
|
|
|
architecture-dependent file that can later be memory mapped for use by
|
|
|
|
ICU. Data packaged using this mode will be looked up under the ICU
|
2001-12-21 02:53:40 +00:00
|
|
|
data directory. Such packaging is easy to use for applications resource
|
2001-12-21 01:46:10 +00:00
|
|
|
bundles, for example, as long as the application can install the
|
|
|
|
packaged file in the ICU data directory.
|
|
|
|
.PP
|
|
|
|
Another packaging mode is the
|
2001-12-21 20:09:18 +00:00
|
|
|
.BR dll ,
|
|
|
|
or
|
|
|
|
.BR library ,
|
2001-12-21 01:46:10 +00:00
|
|
|
mode, where the data files are compiled into a shared library. ICU
|
|
|
|
used to be able to dynamically load these shared libraries, but as of
|
|
|
|
ICU 2.0, such support has been removed. This mode is still useful for
|
|
|
|
two main purposes: to build ICU itself, as the ICU data is packaged as
|
|
|
|
a shared library by default; and to build resource bundles that are
|
|
|
|
linked to the application that uses them. Such resource bundles can
|
|
|
|
then be placed anywhere where the system's dynamic linker will be
|
|
|
|
looking for shared libraries, instead of being forced to live inside
|
|
|
|
the ICU data directory.
|
2002-03-01 22:43:48 +00:00
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.BR static
|
2002-03-22 09:35:03 +00:00
|
|
|
packaging mode is similar to the shared library one except that it
|
2002-03-22 17:06:57 +00:00
|
|
|
produces a static library.
|
|
|
|
.\" Note that many platforms are not able to
|
|
|
|
.\" dynamically load symbols from static object files, so for this reason
|
|
|
|
.\" .BR udata_setAppData()
|
|
|
|
.\" must be called
|
|
|
|
.\" to install this data. As a convenience, pkgdata will build a C source file
|
|
|
|
.\" and a header file. Given a data package named
|
|
|
|
.\" .IR name, in the output
|
|
|
|
.\" directory will be created
|
|
|
|
.\" .IR name .c
|
|
|
|
.\" and
|
|
|
|
.\" .IR name .h with the single
|
|
|
|
.\" function
|
|
|
|
.\" .BR "udata_install_\fcIname\fB(UErrorCode *err)" ,
|
|
|
|
.\" where
|
|
|
|
.\" .I cname
|
|
|
|
.\" is
|
|
|
|
.\" .I name
|
|
|
|
.\" turned into a valid C identifier.
|
|
|
|
.\" The application need to call this function once. The error code returned
|
|
|
|
.\" is that of
|
|
|
|
.\" .BR udata_setAppData() .
|
|
|
|
.\" .PP
|
|
|
|
.\" Data pakackaged in a library, whether shared or static,
|
|
|
|
.\" Subsequently, the application can access this data by passing
|
|
|
|
.\" .I name for the
|
|
|
|
.\" .I path
|
|
|
|
.\" rgument to functions such as
|
|
|
|
.\" .BR Bures_open() .
|
2001-12-21 01:46:10 +00:00
|
|
|
.PP
|
|
|
|
Finally,
|
|
|
|
.B pkgdata
|
|
|
|
supports a
|
2001-12-21 20:09:18 +00:00
|
|
|
.B files
|
|
|
|
mode which simply copies the data files instead of packaging
|
2001-12-21 01:46:10 +00:00
|
|
|
them as a single file or library. This mode is mainly intended to
|
|
|
|
provide support for building ICU before it is packaged as separate
|
|
|
|
small packages for distribution with operating systems such as Debian
|
|
|
|
GNU/Linux for example. Please refer to the packaging documentation in
|
|
|
|
the ICU source distribution for further information on the use of this
|
|
|
|
mode.
|
2002-01-29 23:33:03 +00:00
|
|
|
.PP
|
|
|
|
.B pkgdata
|
|
|
|
relies on GNU
|
|
|
|
.BR make (1)
|
2002-03-22 17:06:57 +00:00
|
|
|
to do the packaging, and generates a makefile with rules to build,
|
|
|
|
package, install, or clean the appropriate data.
|
2001-12-21 01:46:10 +00:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2002-01-18 19:45:44 +00:00
|
|
|
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
|
2001-12-21 01:46:10 +00:00
|
|
|
Print help about usage and exit.
|
|
|
|
.TP
|
2002-01-18 19:45:44 +00:00
|
|
|
.BR "\-v\fP, \fB\-\-verbose"
|
2001-12-21 02:52:39 +00:00
|
|
|
Display extra informative messages during execution.
|
|
|
|
.TP
|
2002-01-18 19:45:44 +00:00
|
|
|
.BR "\-c\fP, \fB\-\-copyright"
|
2001-12-21 01:46:10 +00:00
|
|
|
Include a copyright notice in the binary data.
|
|
|
|
.TP
|
|
|
|
.BI "\-C\fP, \fB\-\-comment" " comment"
|
|
|
|
Includes the specified
|
|
|
|
.I comment
|
|
|
|
in the resulting data instead of the ICU copyright notice.
|
|
|
|
.TP
|
|
|
|
.BI "\-m\fP, \fB\-\-mode" " mode"
|
|
|
|
Set the packaging
|
|
|
|
.I mode
|
|
|
|
to be used by
|
|
|
|
.BR pkgdata .
|
|
|
|
The different modes and their meaning are explained in the
|
|
|
|
.B DESCRIPTION
|
2001-12-21 20:09:18 +00:00
|
|
|
section above. The valid mode names are
|
|
|
|
.BR common
|
|
|
|
(or
|
|
|
|
.BR archive ),
|
|
|
|
.BR dll
|
|
|
|
(or
|
|
|
|
.BR library ),
|
|
|
|
and
|
|
|
|
.BR files .
|
2001-12-21 01:46:10 +00:00
|
|
|
.TP
|
|
|
|
.BI "\-O\fP, \fB\-\-bldopt" " options"
|
|
|
|
Specify options for the builder. The builder is used internally by
|
|
|
|
.B pkgdata
|
|
|
|
to generate the correct packaged file. Such options include, but are
|
|
|
|
not limited to, setting variables used by
|
|
|
|
.BR make (1)
|
2002-05-10 20:31:01 +00:00
|
|
|
during the build of the packaged file. Note: If
|
|
|
|
.BR icu-config
|
|
|
|
is available, then this option is not needed.
|
2001-12-21 01:46:10 +00:00
|
|
|
.TP
|
2001-12-22 05:01:19 +00:00
|
|
|
.BI "\-p\fP, \fB\-\-name" " name"
|
2001-12-21 01:46:10 +00:00
|
|
|
Set the packaged file name to
|
|
|
|
.IR name .
|
2002-03-16 21:16:02 +00:00
|
|
|
This name is also used as the default entry point name after having
|
|
|
|
been turned into a valid C identifier.
|
2001-12-21 01:46:10 +00:00
|
|
|
.TP
|
|
|
|
.BI "\-e\fP, \fB\-\-entrypoint" " name"
|
|
|
|
Set the data entry point (used for linking against the data in a
|
|
|
|
shared library form) to
|
|
|
|
.IR name .
|
|
|
|
The default entry point name is the name set by the
|
|
|
|
.BI "\-n\fP, \fB\-\-name"
|
|
|
|
option.
|
|
|
|
.TP
|
2002-01-17 21:17:49 +00:00
|
|
|
.BI "\-r\fP, \fB\-\-revision" " version"
|
2001-12-21 02:52:39 +00:00
|
|
|
Enable versioning of the shared library produced in
|
2002-03-22 09:35:03 +00:00
|
|
|
.BR dll ,
|
|
|
|
or
|
|
|
|
.BR library ,
|
2001-12-21 02:52:39 +00:00
|
|
|
mode. The version number has the format
|
|
|
|
.I major\fP.\fIminor\fP.\fIpatchlevel
|
|
|
|
and all parts except for
|
|
|
|
.I major
|
|
|
|
are optional. If only
|
|
|
|
.I major
|
|
|
|
is supplied then the version is
|
|
|
|
assumed to be
|
|
|
|
.IR major .0
|
|
|
|
for versioning purposes.
|
|
|
|
.TP
|
2002-01-29 23:33:03 +00:00
|
|
|
.BI "\-M" " arg"
|
|
|
|
Pass
|
|
|
|
.I arg
|
|
|
|
to
|
|
|
|
.BR make (1).
|
|
|
|
.TP
|
2001-12-21 02:52:39 +00:00
|
|
|
.BI "\-F\fP, \fB\-\-rebuild"
|
|
|
|
Force the rebuilding of all data and their repackaging.
|
|
|
|
.TP
|
|
|
|
.BI "\-k\fP, \fB\-\-clean"
|
|
|
|
Clean temporary files and other build residues.
|
|
|
|
.TP
|
|
|
|
.BI "\-I\fP, \fB\-\-install"
|
|
|
|
Install the packaged file (or all the files in the
|
2001-12-21 20:09:18 +00:00
|
|
|
.B files
|
2001-12-21 02:52:39 +00:00
|
|
|
mode). If the variable
|
|
|
|
.B DESTDIR
|
|
|
|
is set it will be used for installation.
|
|
|
|
.TP
|
|
|
|
.BI "\-n\fP, \fB\-\-nooutput"
|
|
|
|
Do not produce any output but simply a list of affected files.
|
|
|
|
.TP
|
2001-12-21 01:46:10 +00:00
|
|
|
.BI "\-s\fP, \fB\-\-sourcedir" " source"
|
|
|
|
Set the source directory to
|
|
|
|
.IR source .
|
|
|
|
The default source directory is the current directory.
|
|
|
|
.TP
|
|
|
|
.BI "\-d\fP, \fB\-\-destdir" " destination"
|
|
|
|
Set the destination directory to
|
|
|
|
.IR destination .
|
|
|
|
The default destination directory is the current directory.
|
|
|
|
.TP
|
|
|
|
.BI "\-T\fP, \fB\-\-tempdir" " directory"
|
|
|
|
Set the directory used to generate temporary files to
|
|
|
|
.IR directory .
|
|
|
|
The default temporary directory is the same as the destination
|
|
|
|
directory
|
|
|
|
as set by the
|
|
|
|
.BI "\-d\fP, \fB\-\-destdir"
|
|
|
|
option.
|
2002-03-22 09:35:03 +00:00
|
|
|
.SH AUTHORS
|
|
|
|
Steven Loomis
|
|
|
|
.br
|
|
|
|
Yves Arrouye
|
2001-12-21 01:46:10 +00:00
|
|
|
.SH VERSION
|
|
|
|
@VERSION@
|
|
|
|
.SH COPYRIGHT
|
2002-03-22 09:35:03 +00:00
|
|
|
Copyright (C) 2000-2002 IBM, Inc. and others.
|
2001-12-21 01:46:10 +00:00
|
|
|
|