Mercurial > emacs
comparison etc/charsets/Makefile @ 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 | c9c8fd3a8523 |
children | d1fc6a0e4772 |
comparison
equal
deleted
inserted
replaced
89429:3c978149859b | 89430:28939d6dacea |
---|---|
45 cns11643-2.map \ | 45 cns11643-2.map \ |
46 big5.map \ | 46 big5.map \ |
47 viscii.map \ | 47 viscii.map \ |
48 koi8-r.map \ | 48 koi8-r.map \ |
49 ibm866.map \ | 49 ibm866.map \ |
50 mac-roman.map \ | 50 mac-roman.map |
51 gb18030-bmp.map | |
52 | 51 |
53 all: ${MAPS} | 52 all: ${MAPS} |
54 | 53 |
55 GLIBCDIR=../../../src/glibc-2.2.4/localedata/charmaps | 54 GLIBCDIR=../../../m17n-db/glibc-2.3/localedata/charmaps |
56 ICUDIR=../../../icu/data | 55 ICUDIR=../../../icu/data |
57 | 56 |
58 8859-%.map: ${GLIBCDIR}/ISO-8859-% | 57 8859-%.map: ${GLIBCDIR}/ISO-8859-% |
59 ${SED} -n \ | 58 ${SED} -n \ |
60 -e '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*\(...\).*/0\2 0x\1/p' \ | 59 -e '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*\(...\).*/0\2 0x\1/p' \ |
146 mac-roman.map: ${GLIBCDIR}/MACINTOSH | 145 mac-roman.map: ${GLIBCDIR}/MACINTOSH |
147 ${SED} -n -e \ | 146 ${SED} -n -e \ |
148 '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' \ | 147 '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' \ |
149 < $< > $@ | 148 < $< > $@ |
150 | 149 |
151 gb18030-bmp.map: ${ICUDIR}/gb18030.ucm gb18030.awk | 150 gb18030-2.map: ${GLIBCDIR}/GB18030 gb18030-2.awk |
152 ${SED} -n -e '/CHARMAP/,/END CHARMAP/p' < $< | gawk -f gb18030.awk > $@ | 151 ${SED} -n '/^<U....>[ ]*\/x..\/x..[ ]/ p' < $< \ |
152 | ${SED} -e 's,<U\([^>]*\)>[ ]*/x\(..\)/x\(..\).*$$,0x\2\3 0x\1,' \ | |
153 | sort | gawk -f gb18030-2.awk > $@ | |
154 | |
155 gb18030-4byte.map: gb18030-2.map gb18030-4.awk | |
156 gawk -f gb18030-4.awk < $< > $@ | |
153 | 157 |
154 maintainer-clean: | 158 maintainer-clean: |
155 rm -rf ${MAPS} | 159 rm -rf ${MAPS} |