febf2ead5f559ef4ca816af1ff4cc0b8d8c605d1
[kopensolaris-gnu/glibc.git] / iconvdata / gen-8bit-gap-1.sh
1 #! /bin/sh
2 echo "static const uint32_t iso88597_to_ucs4[96] = {"
3 sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' \
4     -e 's/^[^[:space:]]*[[:space:]]*.x\([A-F].\)[[:space:]]*<U\(....\)>.*/  [0x\1 - 0xA0] = 0x\2,/p' \
5     -e d "$@" | \
6 sort -u
7 echo "};"
8 echo "static const struct gap from_idx[] = {"
9 sed -e 's/^[^[:space:]]*[[:space:]]*.x\([A-F].\)[[:space:]]*<U\(....\)>.*/0x\2 0x\1/p' \
10     -e d "$@" | \
11 sort -u | $PERL gap.pl
12 echo "  { start: 0xffff, end: 0xffff, idx:     0 }"
13 echo "};"
14 echo "static const char iso88597_from_ucs4[] = {"
15 sed -e 's/^[^[:space:]]*[[:space:]]*.x\([A-F].\)[[:space:]]*<U\(....\)>.*/0x\2 0x\1/p' \
16     -e d "$@" | \
17 sort -u | $PERL gaptab.pl
18 echo "};"