]> git.ipfire.org Git - thirdparty/glibc.git/blame - iconvdata/gen-8bit.sh
Disable warnings in string/tester.c at top level.
[thirdparty/glibc.git] / iconvdata / gen-8bit.sh
CommitLineData
48d0341c 1#!/bin/sh
3cb0cda8 2echo "static const uint32_t to_ucs4[256] = {"
be97a69e 3sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d;/^END/q' \
8b682b99 4 -e 's/^<U\(....\)>[[:space:]]*.x\(..\).*/ [0x\2] = 0x\1,/p' \
fed8f7f7 5 "$@" | sort -u
3cb0cda8
UD
6echo "};"
7echo "static const char from_ucs4[] = {"
be97a69e 8sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d;/^END/q' \
8b682b99 9 -e 's/^<U\(....\)>[[:space:]]*.x\(..\).*/ [0x\1] = 0x\2,/p' \
fed8f7f7 10 "$@" | sort -u
3cb0cda8 11echo "};"