diff options
author | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
commit | 9f1dfb0e6b859cba0ebda5f945987ba6c24a596b (patch) | |
tree | d85d9819673c16e4753109862a2eeb9bfa775e7a /perl-install/share/gen_locales.sh | |
parent | dee901a3fde82083a630082f04c0139c73ba248f (diff) | |
download | drakx-topic/PCMCIA_CS_DISTRO.tar drakx-topic/PCMCIA_CS_DISTRO.tar.gz drakx-topic/PCMCIA_CS_DISTRO.tar.bz2 drakx-topic/PCMCIA_CS_DISTRO.tar.xz drakx-topic/PCMCIA_CS_DISTRO.zip |
This commit was manufactured by cvs2svn to create branchtopic/PCMCIA_CS_DISTRO
'PCMCIA_CS_DISTRO'.
Diffstat (limited to 'perl-install/share/gen_locales.sh')
-rwxr-xr-x | perl-install/share/gen_locales.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/perl-install/share/gen_locales.sh b/perl-install/share/gen_locales.sh deleted file mode 100755 index 981170484..000000000 --- a/perl-install/share/gen_locales.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -rm -rf .tmp ; mkdir .tmp ; cd .tmp -tar xfj ../locales-skeleton.tar.bz2 - -# locale utf-8 -for i in LC_ADDRESS LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_MESSAGES/SYS_LC_MESSAGES ; do - cp -f /usr/share/locale/UTF-8/$i usr/share/locale/UTF-8/$i -done - -# lc_ctype for common encoding -for i in CP1251 ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-2 ISO-8859-3 ISO-8859-7 ISO-8859-9 ISO-8859-9E ; do - f=usr/share/locale/$i/LC_CTYPE - [ -e /$f ] || { echo missing /$f ; exit 1 ; } - cp -f /$f $f -done - -rm -rf .tmp2 ; mkdir .tmp2 ; cd .tmp2 -for i in hy ja ko th vi ; do - ii=locales-`echo $i | sed 's/\(..\).*/\1/'` - rpm2cpio /RPMS/$ii-*.rpm | cpio -id --quiet - f=usr/share/locale/$i/LC_CTYPE - [ -e $f ] || { echo missing $f in package $ii ; exit 1 ; } - cp -f $f ../$f - rm -rf * -done -cd .. ; rm -rf .tmp2 - -# special case for chineese (why is it needed?) -rm -rf .tmp2 ; mkdir .tmp2 ; cd .tmp2 -for i in zh_CN.GB2312 zh_TW.Big5 ; do - ii=locales-`echo $i | sed 's/\(..\).*/\1/'` - rpm2cpio /RPMS/$ii-*.rpm | cpio -id --quiet - for f in LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_MESSAGES/SYS_LC_MESSAGES ; do - f=usr/share/locale/$i/$f - [ -e $f ] || { echo missing $f in package $ii ; exit 1 ; } - cp -f $f ../$f - done - rm -rf * -done -cd .. ; rm -rf .tmp2 - - -tar cfj ../locales.tar.bz2 usr - -cd .. ; rm -rf .tmp |