Commit | Line | Data |
---|---|---|
a33eac03 MB |
1 | This patch is taken from debian's glibc package (generate-supported.mk). |
2 | It install the localedata/SUPPORTED file of the glibc. This file lists | |
3 | all the supported locales of the glibc. | |
4 | ||
5 | diff --git a/localedata/Makefile b/localedata/Makefile | |
6 | index 65079f9eb8..14818f84e0 100644 | |
7 | --- a/localedata/Makefile | |
8 | +++ b/localedata/Makefile | |
9 | @@ -169,7 +169,8 @@ endif | |
10 | # Files to install. | |
11 | install-others := $(addprefix $(inst_i18ndir)/, \ | |
12 | $(addsuffix .gz, $(charmaps)) \ | |
13 | - $(locales)) | |
14 | + $(locales)) \ | |
15 | + $(inst_i18ndir)/SUPPORTED | |
16 | ||
17 | tests: $(objdir)/iconvdata/gconv-modules | |
18 | ||
19 | @@ -380,6 +381,14 @@ endif | |
20 | ||
21 | include SUPPORTED | |
22 | ||
23 | +$(inst_i18ndir)/SUPPORTED: SUPPORTED $(+force) | |
24 | + for locale in $(SUPPORTED-LOCALES); do \ | |
25 | + [ $$locale = true ] && continue; \ | |
26 | + echo $$locale | sed 's,/, ,' >> LOCALES; \ | |
27 | + done | |
28 | + $(make-target-directory) | |
29 | + $(INSTALL_DATA) LOCALES $@ | |
30 | + | |
31 | INSTALL-SUPPORTED-LOCALE-ARCHIVE=$(addprefix install-archive-, $(SUPPORTED-LOCALES)) | |
32 | INSTALL-SUPPORTED-LOCALE-FILES=$(addprefix install-files-, $(SUPPORTED-LOCALES)) | |
33 |