2018-10-28 03:16:46 +01:00
|
|
|
This patch is taken from debian's glibc package (generate-supported.mk).
|
2018-11-07 10:57:08 +01:00
|
|
|
It install the localedata/SUPPORTED file of the glibc. This file lists
|
|
|
|
all the supported locales of the glibc.
|
2018-10-28 03:16:46 +01:00
|
|
|
|
2019-07-02 16:45:17 +02:00
|
|
|
diff --git a/localedata/Makefile b/localedata/Makefile
|
|
|
|
index 65079f9eb8..14818f84e0 100644
|
|
|
|
--- a/localedata/Makefile
|
2018-10-28 03:16:46 +01:00
|
|
|
+++ b/localedata/Makefile
|
2019-07-02 16:45:17 +02:00
|
|
|
@@ -169,7 +169,8 @@ endif
|
2018-10-28 03:16:46 +01:00
|
|
|
# Files to install.
|
|
|
|
install-others := $(addprefix $(inst_i18ndir)/, \
|
|
|
|
$(addsuffix .gz, $(charmaps)) \
|
|
|
|
- $(locales))
|
|
|
|
+ $(locales)) \
|
|
|
|
+ $(inst_i18ndir)/SUPPORTED
|
|
|
|
|
|
|
|
tests: $(objdir)/iconvdata/gconv-modules
|
|
|
|
|
2019-07-02 16:45:17 +02:00
|
|
|
@@ -380,6 +381,14 @@ endif
|
2018-10-28 03:16:46 +01:00
|
|
|
|
|
|
|
include SUPPORTED
|
|
|
|
|
|
|
|
+$(inst_i18ndir)/SUPPORTED: SUPPORTED $(+force)
|
|
|
|
+ for locale in $(SUPPORTED-LOCALES); do \
|
|
|
|
+ [ $$locale = true ] && continue; \
|
|
|
|
+ echo $$locale | sed 's,/, ,' >> LOCALES; \
|
|
|
|
+ done
|
|
|
|
+ $(make-target-directory)
|
|
|
|
+ $(INSTALL_DATA) LOCALES $@
|
|
|
|
+
|
2019-07-02 16:45:17 +02:00
|
|
|
INSTALL-SUPPORTED-LOCALE-ARCHIVE=$(addprefix install-archive-, $(SUPPORTED-LOCALES))
|
|
|
|
INSTALL-SUPPORTED-LOCALE-FILES=$(addprefix install-files-, $(SUPPORTED-LOCALES))
|
|
|
|
|