From: Kenichi Handa Date: Tue, 7 May 2002 04:46:19 +0000 (+0000) Subject: (MAPS): Add gbk.map and gb18030-bmp.map. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~935 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c90e1d1c1b96494b25c6170c7b04a7b45c773c55;p=emacs.git (MAPS): Add gbk.map and gb18030-bmp.map. (ICUDIR): New macro. (gbk.map, gb18030-bmp.map): New targets. --- diff --git a/etc/charsets/Makefile b/etc/charsets/Makefile index 76f01288430..f0ccafc8b81 100644 --- a/etc/charsets/Makefile +++ b/etc/charsets/Makefile @@ -36,6 +36,7 @@ MAPS = 8859-2.map \ 8859-15.map \ 8859-16.map \ gb2312-1980.map \ + gbk.map \ ksc5601-1987.map \ jisx0201.map \ jisx0208-1990.map \ @@ -47,10 +48,12 @@ MAPS = 8859-2.map \ koi8-r.map \ ibm866.map \ mac-roman.map \ + gb18030-bmp.map all: ${MAPS} GLIBCDIR=../../../src/glibc-2.2.4/localedata/charmaps +ICUDIR=../../../icu/data 8859-%.map: ${GLIBCDIR}/ISO-8859-% ${SED} -n \ @@ -65,6 +68,11 @@ gb2312-1980.map: ${GLIBCDIR}/GB2312 -e 's/xd/5/g' -e 's/xe/6/g' -e 's/xf/7/g' \ > $@ +gbk.map: ${GLIBCDIR}/GBK + ${SED} -n -e \ + '/^<.*x[0-9a-f]..x[0-9a-f]/s/ $@ + ksc5601-1987.map: ${GLIBCDIR}/EUC-KR ${SED} -n -e \ '/x[a-f]..x[a-f]/s/ $@ +gb18030-bmp.map: ${ICUDIR}/gb18030.ucm gb18030.awk + ${SED} -n -e '/CHARMAP/,/END CHARMAP/p' < $< | gawk -f gb18030.awk > $@ + maintainer-clean: rm -rf ${MAPS}