]> git.ipfire.org Git - thirdparty/glibc.git/blame - iconvdata/gen-8bit.sh
Update.
[thirdparty/glibc.git] / iconvdata / gen-8bit.sh
CommitLineData
3cb0cda8
UD
1#! /bin/sh
2echo "static const uint32_t to_ucs4[256] = {"
3sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' \
4 -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\1] = 0x\2,/p' \
5 -e d "$@" | \
6sort -u
7echo "};"
8echo "static const char from_ucs4[] = {"
9sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' \
10 -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\2] = 0x\1,/p' \
11 -e d "$@" | \
12sort -u
13echo "};"