2018-10-27 22:16:46 -04:00
|
|
|
This patch is taken from debian's glibc package (generate-supported.mk).
|
2018-11-07 04:57:08 -05:00
|
|
|
It install the localedata/SUPPORTED file of the glibc. This file lists
|
|
|
|
all the supported locales of the glibc.
|
2018-10-27 22:16:46 -04:00
|
|
|
|
2019-07-02 10:45:17 -04:00
|
|
|
diff --git a/localedata/Makefile b/localedata/Makefile
|
|
|
|
index 65079f9eb8..14818f84e0 100644
|
|
|
|
--- a/localedata/Makefile
|
2018-10-27 22:16:46 -04:00
|
|
|
+++ b/localedata/Makefile
|
2019-07-02 10:45:17 -04:00
|
|
|
@@ -169,7 +169,8 @@ endif
|
2018-10-27 22:16:46 -04: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 10:45:17 -04:00
|
|
|
@@ -380,6 +381,14 @@ endif
|
2018-10-27 22:16:46 -04: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 10:45:17 -04:00
|
|
|
INSTALL-SUPPORTED-LOCALE-ARCHIVE=$(addprefix install-archive-, $(SUPPORTED-LOCALES))
|
|
|
|
INSTALL-SUPPORTED-LOCALE-FILES=$(addprefix install-files-, $(SUPPORTED-LOCALES))
|
|
|
|
|