blob: 8f6c09c1f06cf4148869728e226633f080ef3c20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/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_CTYPE 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 CP1255 CP1256 ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-2 ISO-8859-3 ISO-8859-5 ISO-8859-7 ISO-8859-9 ISO-8859-9E KOI8-U ; 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 ta th vi zh_CN.GB2312 zh_TW.Big5 ; 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
tar cfj ../locales.tar.bz2 usr
cd .. ; rm -rf .tmp
|