Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / mkwidthA
blob343ab4016dbed80758498ac49995deb977b48095
1 #! /bin/sh
3 # generate WIDTH-A file, listing Unicode characters with width property
4 # Ambiguous, from EastAsianWidth.txt
6 if [ ! -r EastAsianWidth.txt ]
7 then ln -s /usr/share/unicode/ucd/EastAsianWidth.txt . || exit 1
8 fi
9 if [ ! -r UnicodeData.txt ]
10 then ln -s /usr/share/unicode/ucd/UnicodeData.txt . || exit 1
12 if [ ! -r Blocks.txt ]
13 then ln -s /usr/share/unicode/ucd/Blocks.txt . || exit 1
16 sed -e "s,^\([^;]*\);A,\1," -e t -e d EastAsianWidth.txt > width-a-new
17 rm -f WIDTH-A
18 echo "# UAX #11: East Asian Ambiguous" > WIDTH-A
19 PATH="$PATH:." uniset +width-a-new compact >> WIDTH-A
20 rm -f width-a-new