Debian Codegraph @

Unicode/gen-upc

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 set -e
3 LC_ALL=C
4 export LC_ALL
5 echoscip-shell system . . echo.
6 echoscip-shell system . . echo. Generating Unicode upcase table.
7 for file in upcase locase; do
8 (
9 echoscip-shell system . . echo. '/* Automatically generated by gen-upc */scip-shell filesystem . . `/* Automatically generated by gen-upc */`.'
10 echoscip-shell system . . echo.
11 echoscip-shell system . . echo. "static_const struct { unsigned short o; unsigned short n; } unicode_$file [] = {"
12 (
13 if [scip-shell system . . `[`. $file = upcase ]; then
14 echoscip-shell system . . echo. '00A0 0020'
15 fi
16 catscip-shell system . . cat. $file.uni
17 ) | sedscip-shell system . . sed. 's/^\([0-9A-Z]*\) \([0-9A-Z]*\)$/ { 0x\1, 0x\2 },/' | sortscip-shell system . . sort.
18 echoscip-shell system . . echo. '};'
19 ) > ../$file.inc
20 done
21 echoscip-shell system . . echo. Done.
22 echoscip-shell system . . echo.