about summary refs log tree commit diff
path: root/sysdeps/s390/multiarch/gen-8bit.sh
blob: 6f88c4bd9df1c999b60e57bcbdd5c6a3bbcf03cc (plain) (blame)
1
2
3
4
5
6
#!/bin/sh
echo "static const uint8_t to_ucs1[256] = {"
sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d;/^END/q' \
    -e 's/^<U00\(..\)>[[:space:]]*.x\(..\).*/  [0x\2] = 0x\1,/p' \
    "$@" | sort -u
echo "};"