1#!/bin/sh 2echo "static const uint8_t to_ucs1[256] = {" 3sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d;/^END/q' \ 4 -e 's/^<U00\(..\)>[[:space:]]*.x\(..\).*/ [0x\2] = 0x\1,/p' \ 5 "$@" | sort -u 6echo "};" 7