aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/locale/README
blob: 8dc8c2a25fc12b47d8912b6217b38c9fbf81bf31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $FreeBSD$

Files in this directory are used to generate locale source files
from files in CLDR (Unicode Common Locale Data Repository). 

To generate the files, do the following:

	cd /usr/src/tools/tools/locale
	make obj	(mandatory)
	make -j16	(-jN recommended)
	make diff	(check if the changes are reasonable)
	make install

"make" downloads the necessary files, build them, and install the
results into /usr/src/share/* as source files for locales.

More details are as follows:

Variables:
	LOCALESRCDIR
		Destination path for the generated locale files.
		Default: $DESTDIR/usr/src/share.
	TMPDIR
		Temporary directory.
		Default: /tmp

Targets:
	make obj
		Create a temporary directory for building.

	make clean
		Clean up the obj directories.

	make cleandir
		Remove the obj directories completely.

	make tools-test
		Check if necessary tools are installed or not.
		If something is missing, install them.

	make fetch
		Download necessary files from CLDR.

	make build-tools
		Build a tool to generate locale source files.

	make posix
		Build POSIX locale source files.

	make build
		Build locale files.

	make diff
		Run diff(1) the build results against $LOCALESRCDIR.

	make install
		Install the build results into $LOCALESRCDIR.
[EOF]