3 echo Generating Unicode character properties data
for newlib
/libc
/ctype
7 #############################################################################
8 # checks and (with option -u) download
11 -h) echo "Usage: $0 [-h|-u|-i]"
12 echo "Generate case conversion table caseconv.t and character category table categories.t"
13 echo "from local Unicode file UnicodeData.txt."
16 echo " -u download file from unicode.org first"
17 echo " -i copy file from /usr/share/unicode/ucd first"
24 ref
=`ls "$ref" 2> /dev/null || echo 01-Jan-1970`
25 curl
-R -O --connect-timeout 55 -z "$ref" "$1"
28 echo downloading data from unicode.org
29 for data
in UnicodeData.txt
30 do wget http
://unicode.org
/Public
/UNIDATA
/$data
34 echo copying data from
/usr
/share
/unicode
/ucd
35 for data
in UnicodeData.txt
36 do cp /usr
/share
/unicode
/ucd
/$data .
41 echo checking Unicode data
file
42 for data
in UnicodeData.txt
45 else echo $data not available
, skipping table generation
50 #############################################################################
53 echo generating character category table
for "isw*.c"
56 echo generating
case conversion table
for "tow*.c"
59 #############################################################################