"Fossies" - the Fresh Open Source Software Archive

Member "links-1.03/Unicode/gen-upc" (18 Apr 2011, 346 Bytes) of archive /linux/www/links-1.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "gen-upc": 2.8_vs_1.03.

    1 #!/bin/sh
    2 LC_ALL=C
    3 export LC_ALL
    4 echo
    5 echo Generating Unicode upcase table.
    6 (
    7 echo '/* Automatically generated by gen-upc */'
    8 echo
    9 echo 'struct { int lo; int up; } unicode_upcase [] = {'
   10 cat upcase.uni | sed 's/^[  ]*//' | sed 's/[    ]*$//' | sed 's/  */, /' | sort -n | sed 's/^/  { /' | sed 's/$/ },/'
   11 echo '};'
   12 ) > ../upcase.inc
   13 echo Done.
   14 echo