mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-02 09:40:13 +00:00
7 lines
205 B
Bash
7 lines
205 B
Bash
|
#!/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 "};"
|