diff options
author | root <root@rshg054.dnsready.net> | 2013-07-10 01:01:50 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-10 01:01:50 -0700 |
commit | b509d58f0ff9d5b9167eb65b0264d014c8ac9d66 (patch) | |
tree | 3f56c991ed763cacd474d208be44d496dbc96b48 /libre/xtensa-unknown-elf-glibc/locale-gen | |
parent | 10aa61ef39e662453e1d817046e359372fe3b326 (diff) |
Wed Jul 10 01:01:50 PDT 2013
Diffstat (limited to 'libre/xtensa-unknown-elf-glibc/locale-gen')
-rw-r--r-- | libre/xtensa-unknown-elf-glibc/locale-gen | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/libre/xtensa-unknown-elf-glibc/locale-gen b/libre/xtensa-unknown-elf-glibc/locale-gen deleted file mode 100644 index 5aff344c4..000000000 --- a/libre/xtensa-unknown-elf-glibc/locale-gen +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -set -e - -LOCALEGEN=/etc/locale.gen -LOCALES=/usr/share/i18n/locales -if [ -n "$POSIXLY_CORRECT" ]; then - unset POSIXLY_CORRECT -fi - - -[ -f $LOCALEGEN -a -s $LOCALEGEN ] || exit 0; - -# Remove all old locale dir and locale-archive before generating new -# locale data. -rm -rf /usr/lib/locale/* || true - -umask 022 - -is_entry_ok() { - if [ -n "$locale" -a -n "$charset" ] ; then - true - else - echo "error: Bad entry '$locale $charset'" - false - fi -} - -echo "Generating locales..." -while read locale charset; do \ - case $locale in \#*) continue;; "") continue;; esac; \ - is_entry_ok || continue - echo -n " `echo $locale | sed 's/\([^.\@]*\).*/\1/'`"; \ - echo -n ".$charset"; \ - echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \ - echo -n '...'; \ - if [ -f $LOCALES/$locale ]; then input=$locale; else \ - input=`echo $locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; fi; \ - localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale; \ - echo ' done'; \ -done < $LOCALEGEN -echo "Generation complete." |