mirror of
https://abf.rosa.ru/djam/glibc40.git
synced 2025-02-23 15:52:52 +00:00
22 lines
679 B
Text
22 lines
679 B
Text
![]() |
SUPPORTED ?= /usr/share/i18n/SUPPORTED
|
||
|
|
||
|
include $(SUPPORTED)
|
||
|
|
||
|
INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
|
||
|
|
||
|
install-locales: $(INSTALL-SUPPORTED-LOCALES)
|
||
|
|
||
|
install-locales-dir:
|
||
|
mkdir -p $(DESTDIR)/usr/share/locale
|
||
|
|
||
|
$(INSTALL-SUPPORTED-LOCALES): install-locales-dir
|
||
|
@locale=`echo $@ | sed -e 's/^install-//'`; \
|
||
|
charset=`echo $$locale | sed -e 's,.*/,,'`; \
|
||
|
locale=`echo $$locale | sed -e 's,/[^/]*,,'`; \
|
||
|
input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
|
||
|
echo "localedef -i $$input -c -f $$charset" \
|
||
|
"$(DESTDIR)/usr/share/locale/$$locale"; \
|
||
|
localedef -i $$input -c -f $$charset \
|
||
|
$(DESTDIR)/usr/share/locale/$$locale; \
|
||
|
|