Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/locale/tools/mkwidths.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/bin/sh | |||||
cm=$1 | |||||
out=$2 | |||||
echo '# Width table.' > $out | |||||
while read c w; do | |||||
if [ $c = "VERSION" ]; then | |||||
echo "# Created from utf8proc-$w." >> $out | |||||
echo "WIDTH" >> $out | |||||
continue | |||||
fi | |||||
n=$(grep -m1 " $c$" $cm | sed "s/^\(<.*>\).*$/\1/") | |||||
[ -z $n ] && continue | |||||
printf "$n\t$w\n" | |||||
done >> $out | |||||
echo "END WIDTH" >> $out |