316 lines
6.3 KiB
HTML
316 lines
6.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ICUPKG</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ICUPKG</H1>
|
|
Section: ICU 66.1 Manual (8)<BR>Updated: 18 August 2006<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
<B>icupkg</B>
|
|
|
|
- extract or modify an ICU
|
|
<B>.dat</B>
|
|
|
|
archive
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>icupkg</B>
|
|
|
|
[
|
|
<B>-h</B>, <B>-?</B>, <B>--help</B>
|
|
|
|
]
|
|
[
|
|
<B>-tl</B>, <B>--type</B> l
|
|
|
|
|
|
|
<B>-tb</B>, <B>--type</B> b
|
|
|
|
|
|
|
<B>-te</B>, <B>--type</B> e
|
|
|
|
]
|
|
[
|
|
<B>-c</B>, <B>--copyright</B>
|
|
|
|
|
|
|
<B>-C</B>, <B>--comment</B><I> comment</I>
|
|
|
|
]
|
|
[
|
|
<B>-a</B>, <B>--add</B><I> list</I>
|
|
|
|
]
|
|
[
|
|
<B>-r</B>, <B>--remove</B><I> list</I>
|
|
|
|
]
|
|
[
|
|
<B>-x</B>, <B>--extract</B><I> list</I>
|
|
|
|
]
|
|
[
|
|
<B>-l</B>, <B>--list</B>
|
|
|
|
]
|
|
[
|
|
<B>-s</B>, <B>--sourcedir</B><I> source</I>
|
|
|
|
]
|
|
[
|
|
<B>-d</B>, <B>--destdir</B><I> destination</I>
|
|
|
|
]
|
|
[
|
|
<B>-w</B>, <B>--writepkg</B>
|
|
|
|
]
|
|
[
|
|
<B>-m</B>, <B>--matchmode</B><I> mode</I>
|
|
|
|
]
|
|
<I>infilename</I>
|
|
|
|
[
|
|
<B>outfilename</B>
|
|
|
|
]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>icupkg</B>
|
|
|
|
reads the input ICU
|
|
<B>.dat</B>
|
|
|
|
package file, modify it according to the options,
|
|
swap it to the desired platform properties (charset & endianness),
|
|
and optionally write the resulting ICU
|
|
<B>.dat</B>
|
|
|
|
package to the output file.
|
|
Items are removed, then added, then extracted and listed.
|
|
An ICU
|
|
<B>.dat</B>
|
|
|
|
package is written if items are removed or added,
|
|
or if the input and output filenames differ,
|
|
or if the
|
|
<B>-w</B>, <B>--writepkg</B>
|
|
|
|
option is set.
|
|
<P>
|
|
|
|
If the input filename is "new" then an empty package is created.
|
|
If the output filename is missing, then it is automatically generated
|
|
from the input filename. If the input filename ends with an l, b, or e
|
|
matching its platform properties, then the output filename will
|
|
contain the letter from the
|
|
<B>-t</B>, <B>--type</B>
|
|
|
|
option.
|
|
<P>
|
|
|
|
This tool can also be used to just swap a single ICU data file, replacing the
|
|
former icuswap tool. For this mode, provide the infilename (and optional
|
|
outfilename) for a non-package ICU data file.
|
|
Allowed options include
|
|
<B>-t</B>, <B>-w</B>, <B>-s</B>
|
|
|
|
and
|
|
<B>-d</B>
|
|
|
|
The filenames can be absolute, or relative to the source/dest dir paths.
|
|
Other options are not allowed in this mode.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-h</B>, <B>-?</B>, <B>--help</B>
|
|
|
|
<DD>
|
|
Print help about usage and exit.
|
|
<DT id="2"><B>-tl</B>, <B>--type</B><I> l</I>
|
|
|
|
<DD>
|
|
Output for little-endian/ASCII charset family.
|
|
The output type defaults to the input type.
|
|
<DT id="3"><B>-tb</B>, <B>--type</B><I> b</I>
|
|
|
|
<DD>
|
|
Output for big-endian/ASCII charset family.
|
|
The output type defaults to the input type.
|
|
<DT id="4"><B>-te</B>, <B>--type</B><I> e</I>
|
|
|
|
<DD>
|
|
Output for big-endian/EBCDIC charset family.
|
|
The output type defaults to the input type.
|
|
<DT id="5"><B>-c</B>,<B>--copyright</B>
|
|
|
|
<DD>
|
|
Include the ICU copyright notice in the resulting data.
|
|
<DT id="6"><B>-C</B>, <B>--comment</B><I> comment</I>
|
|
|
|
<DD>
|
|
Include the specified
|
|
<I>comment</I>
|
|
|
|
in the resulting data instead of the ICU copyright notice.
|
|
<DT id="7"><B>-a</B>, <B>--add</B><I> list</I>
|
|
|
|
<DD>
|
|
Add items from the
|
|
<I>list</I>
|
|
|
|
to the package. The list can be a single filename with a
|
|
<B>.txt</B>
|
|
|
|
file extension containing a list of item filenames, or an ICU
|
|
<B>.dat</B>
|
|
|
|
package filename.
|
|
<DT id="8"><B>-r</B>, <B>--remove</B><I> list</I>
|
|
|
|
<DD>
|
|
Remove items from the
|
|
<I>list</I>
|
|
|
|
from the package. The list can be a single filename with a
|
|
<B>.txt</B>
|
|
|
|
file extension containing a list of item filenames, or an ICU
|
|
<B>.dat</B>
|
|
|
|
package filename.
|
|
<DT id="9"><B>-x</B>, <B>--extract</B><I> list</I>
|
|
|
|
<DD>
|
|
Extract items from the
|
|
<I>list</I>
|
|
|
|
from the package. The list can be a single filename with a
|
|
<B>.txt</B>
|
|
|
|
file extension containing a list of item filenames, or an ICU
|
|
<B>.dat</B>
|
|
|
|
package filename.
|
|
<DT id="10"><B>-m</B>, <B>--matchmode</B><I> mode</I>
|
|
|
|
<DD>
|
|
Set the matching mode for item names with wildcards.
|
|
<DT id="11"><B>-s</B>, <B>--sourcedir</B><I> source</I>
|
|
|
|
<DD>
|
|
Set the source directory to
|
|
<I>source</I>.
|
|
|
|
The default source directory is the current directory.
|
|
<DT id="12"><B>-d</B>, <B>--destdir</B><I> destination</I>
|
|
|
|
<DD>
|
|
Set the destination directory to
|
|
<I>destination</I>.
|
|
|
|
The default destination directory is the current directory.
|
|
<DT id="13"><B>-l</B>, <B>--list</B>
|
|
|
|
<DD>
|
|
List the package items to stdout (after modifying the package).
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>LIST FILE SYNTAX</H2>
|
|
|
|
Items are listed on one or more lines and separated by whitespace (space+tab).
|
|
Comments begin with
|
|
<B>#</B>
|
|
|
|
and are ignored. Empty lines are ignored. Lines where the first non-whitespace
|
|
character is one of "%&'()*+,-./:;<=>?_ are also ignored
|
|
to reserve for future syntax.
|
|
<P>
|
|
|
|
Items for removal or extraction may contain a single
|
|
<B>*</B>
|
|
|
|
wildcard character. The
|
|
<B>*</B>
|
|
|
|
matches zero or more characters. If
|
|
<B>-m</B>, <B>--matchmode</B><I> noslash</I>
|
|
|
|
is set, then the
|
|
<B>*</B>
|
|
|
|
character does not match the
|
|
<B>/</B>
|
|
|
|
character.
|
|
<P>
|
|
|
|
Items must be listed relative to the package, and the
|
|
<B>--sourcedir</B>
|
|
|
|
or the
|
|
<B>--destdir</B>
|
|
|
|
path will be prepended. The paths are only prepended to item
|
|
filenames while adding or extracting items, not to ICU .dat package or list
|
|
filenames.
|
|
<P>
|
|
|
|
Paths may contain
|
|
<B>/</B>
|
|
|
|
instead of the platform's file separator character and are converted as
|
|
appropriate.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
Markus Scherer
|
|
<BR>
|
|
|
|
George Rhoten
|
|
<A NAME="lbAH"> </A>
|
|
<H2>VERSION</H2>
|
|
|
|
1.0
|
|
<A NAME="lbAI"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright (C) 2006 IBM, Inc. and others.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pkgdata">pkgdata</A></B>(1)
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+genrb">genrb</A></B>(1)
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">LIST FILE SYNTAX</A><DD>
|
|
<DT id="19"><A HREF="#lbAG">AUTHORS</A><DD>
|
|
<DT id="20"><A HREF="#lbAH">VERSION</A><DD>
|
|
<DT id="21"><A HREF="#lbAI">COPYRIGHT</A><DD>
|
|
<DT id="22"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:12 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|