1ICUPKG(8)                       ICU 71.1 Manual                      ICUPKG(8)
2
3
4

NAME

6       icupkg - extract or modify an ICU .dat archive
7

SYNOPSIS

9       icupkg [ -h, -?, --help ] [ -tl, --type l | -tb, --type b | -te, --type
10       e ] [ -c, --copyright | -C, --comment comment ] [ -a, --add  list  ]  [
11       -r,  --remove  list  ]  [  -x,  --extract  list  ] [ -l, --list ] [ -s,
12       --sourcedir source ] [ -d, --destdir destination ] [ -w, --writepkg ] [
13       -m, --matchmode mode ] infilename [ outfilename ]
14

DESCRIPTION

16       icupkg  reads  the  input ICU .dat package file, modify it according to
17       the options, swap it to the desired platform properties (charset &  en‐
18       dianness),  and  optionally write the resulting ICU .dat package to the
19       output file.  Items are removed, then added, then extracted and listed.
20       An ICU .dat package is written if items are removed or added, or if the
21       input and output filenames differ, or if the -w, --writepkg  option  is
22       set.
23
24       If  the  input  filename is "new" then an empty package is created.  If
25       the output filename is missing, then it is automatically generated from
26       the  input  filename.  If  the  input  filename ends with an l, b, or e
27       matching its platform properties, then the output filename will contain
28       the letter from the -t, --type option.
29
30       This tool can also be used to just swap a single ICU data file, replac‐
31       ing the former icuswap tool. For this mode, provide the infilename (and
32       optional outfilename) for a non-package ICU data file.  Allowed options
33       include -t, -w, -s and -d The filenames can be absolute, or relative to
34       the source/dest dir paths.  Other options are not allowed in this mode.
35

OPTIONS

37       -h, -?, --help
38              Print help about usage and exit.
39
40       -tl, --type l
41              Output  for little-endian/ASCII charset family.  The output type
42              defaults to the input type.
43
44       -tb, --type b
45              Output for big-endian/ASCII charset family.  The output type de‐
46              faults to the input type.
47
48       -te, --type e
49              Output  for  big-endian/EBCDIC  charset family.  The output type
50              defaults to the input type.
51
52       -c,--copyright
53              Include the ICU copyright notice in the resulting data.
54
55       -C, --comment comment
56              Include the specified comment in the resulting data  instead  of
57              the ICU copyright notice.
58
59       -a, --add list
60              Add items from the list to the package. The list can be a single
61              filename with a .txt file extension containing a  list  of  item
62              filenames, or an ICU .dat package filename.
63
64       -r, --remove list
65              Remove  items  from the list from the package. The list can be a
66              single filename with a .txt file extension containing a list  of
67              item filenames, or an ICU .dat package filename.
68
69       -x, --extract list
70              Extract  items from the list from the package. The list can be a
71              single filename with a .txt file extension containing a list  of
72              item filenames, or an ICU .dat package filename.
73
74       -m, --matchmode mode
75              Set the matching mode for item names with wildcards.
76
77       -s, --sourcedir source
78              Set  the  source directory to source.  The default source direc‐
79              tory is the current directory.
80
81       -d, --destdir destination
82              Set the destination directory to destination.  The default  des‐
83              tination directory is the current directory.
84
85       -l, --list
86              List the package items to stdout (after modifying the package).
87

LIST FILE SYNTAX

89       Items  are  listed  on  one  or  more lines and separated by whitespace
90       (space+tab).  Comments begin with # and are ignored.  Empty  lines  are
91       ignored.  Lines  where  the  first  non-whitespace  character is one of
92       "%&'()*+,-./:;<=>?_ are also ignored to reserve for future syntax.
93
94       Items for removal or extraction may contain a single * wildcard charac‐
95       ter.  The * matches zero or more characters. If -m, --matchmode noslash
96       is set, then the * character does not match the / character.
97
98       Items must be listed relative to the package, and  the  --sourcedir  or
99       the  --destdir  path will be prepended. The paths are only prepended to
100       item filenames while adding or extracting items, not to ICU .dat  pack‐
101       age or list filenames.
102
103       Paths  may contain / instead of the platform's file separator character
104       and are converted as appropriate.
105

AUTHORS

107       Markus Scherer
108       George Rhoten
109

VERSION

111       1.0
112
114       Copyright (C) 2006 IBM, Inc. and others.
115

SEE ALSO

117       pkgdata(1) genrb(1)
118
119
120
121
122ICU MANPAGE                     18 August 2006                       ICUPKG(8)
Impressum