summaryrefslogtreecommitdiff
path: root/Unicode/gen-upc
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-07 02:53:31 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-12-07 02:53:31 -0800
commitcbb6286cb92020dd7ae88798ed831ed76fd2130e (patch)
tree782a01c00d5e064aa67ea3f9241a8ef1de1060c6 /Unicode/gen-upc
downloadlinks-cbb6286cb92020dd7ae88798ed831ed76fd2130e.tar.gz
links-cbb6286cb92020dd7ae88798ed831ed76fd2130e.tar.bz2
links-cbb6286cb92020dd7ae88798ed831ed76fd2130e.zip
Imported Upstream version 2.6upstream/2.6upstream
Diffstat (limited to 'Unicode/gen-upc')
-rwxr-xr-xUnicode/gen-upc14
1 files changed, 14 insertions, 0 deletions
diff --git a/Unicode/gen-upc b/Unicode/gen-upc
new file mode 100755
index 0000000..724e6ff
--- /dev/null
+++ b/Unicode/gen-upc
@@ -0,0 +1,14 @@
+#!/bin/sh
+LC_ALL=C
+export LC_ALL
+echo
+echo Generating Unicode upcase table.
+(
+echo '/* Automatically generated by gen-upc */'
+echo
+echo 'static struct { unsigned lo; unsigned up; } unicode_upcase [] = {'
+(echo ' 160 32';cat upcase.uni) | sed 's/^[ ]*//' | sed 's/[ ]*$//' | sed 's/ */, /' | sort -n | sed 's/^/ { /' | sed 's/$/ },/'
+echo '};'
+) > ../upcase.inc
+echo Done.
+echo