summaryrefslogtreecommitdiff
path: root/localedata/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-21 17:06:55 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-21 17:06:55 +0000
commit246a9a195fe0e238afaf4d3cb416d68261a8562d (patch)
tree713eedb0c342e57760a6196ba0fbbf88677df630 /localedata/Makefile
parent528be9fe8e08d78481d681c9ce23af6ba60ed2f5 (diff)
downloadglibc-246a9a195fe0e238afaf4d3cb416d68261a8562d.tar.gz
(install-locales): Handle option in locale name. Print progress information.
Diffstat (limited to 'localedata/Makefile')
-rw-r--r--localedata/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/localedata/Makefile b/localedata/Makefile
index 8bdbedfb90..0c27303f8f 100644
--- a/localedata/Makefile
+++ b/localedata/Makefile
@@ -181,14 +181,20 @@ $(objpfx)tst-digits.out: $(objpfx)tst-locale.out
endif
# Sometimes the whole collection of locale files should be installed.
-LOCALEDEF=I18NPATH=. $(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef
+LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
+$(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef
install-locales:
$(..)./scripts/mkinstalldirs $(inst_localedir)
while read locale charset; do \
case $$locale in \#*) continue;; esac; \
- $(LOCALEDEF) -i locales/`echo $$locale | sed 's/\([^.]*\).*/\1/'` \
- -c -f charmaps/$$charset \
+ echo -n `echo $$locale | sed 's/\([^.\@]*\).*/\1/'`; \
+ echo -n ".$$charset"; \
+ echo -n `echo $$locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \
+ echo -n '...'; \
+ input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
+ $(LOCALEDEF) -i locales/$$input -c -f charmaps/$$charset \
$(addprefix --prefix=,$(install_root)) $$locale; \
+ echo ' done'; \
done < SUPPORTED
# The mbwc-tests need some environment setup to find the locale data files