changeset 89430:28939d6dacea

(MAPS): Change gb18030.map to gb18030-2.map and gb18030-4.map. (gb18030.map): Delete this target. (gb18030-2.map, gb18030-4.map): New targets.
author Kenichi Handa <handa@m17n.org>
date Tue, 20 May 2003 13:06:09 +0000
parents 3c978149859b
children c1527f26d513
files etc/charsets/Makefile
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/etc/charsets/Makefile	Tue May 20 13:05:14 2003 +0000
+++ b/etc/charsets/Makefile	Tue May 20 13:06:09 2003 +0000
@@ -47,12 +47,11 @@
 	viscii.map \
 	koi8-r.map \
 	ibm866.map \
-	mac-roman.map \
-	gb18030-bmp.map
+	mac-roman.map
 
 all: ${MAPS}
 
-GLIBCDIR=../../../src/glibc-2.2.4/localedata/charmaps
+GLIBCDIR=../../../m17n-db/glibc-2.3/localedata/charmaps
 ICUDIR=../../../icu/data
 
 8859-%.map: ${GLIBCDIR}/ISO-8859-%
@@ -148,8 +147,13 @@
 	  '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' \
 	  < $< > $@
 
-gb18030-bmp.map: ${ICUDIR}/gb18030.ucm gb18030.awk
-	${SED} -n -e '/CHARMAP/,/END CHARMAP/p' < $< | gawk -f gb18030.awk > $@
+gb18030-2.map: ${GLIBCDIR}/GB18030 gb18030-2.awk
+	${SED} -n '/^<U....>[ 	]*\/x..\/x..[ 	]/ p' < $< \
+	| ${SED} -e 's,<U\([^>]*\)>[ 	]*/x\(..\)/x\(..\).*$$,0x\2\3 0x\1,' \
+	| sort | gawk -f gb18030-2.awk > $@
+
+gb18030-4byte.map: gb18030-2.map gb18030-4.awk
+	gawk -f gb18030-4.awk < $< > $@
 
 maintainer-clean:
 	rm -rf ${MAPS}