ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../sysdeps/s390/multiarch/gen-8bit.sh

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 "};"