summaryrefslogtreecommitdiff
path: root/Unicode/gen-7b
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-7b
downloadlinks-cbb6286cb92020dd7ae88798ed831ed76fd2130e.tar.gz
links-cbb6286cb92020dd7ae88798ed831ed76fd2130e.tar.bz2
links-cbb6286cb92020dd7ae88798ed831ed76fd2130e.zip
Imported Upstream version 2.6upstream/2.6upstream
Diffstat (limited to 'Unicode/gen-7b')
-rwxr-xr-xUnicode/gen-7b20
1 files changed, 20 insertions, 0 deletions
diff --git a/Unicode/gen-7b b/Unicode/gen-7b
new file mode 100755
index 0000000..a879fc9
--- /dev/null
+++ b/Unicode/gen-7b
@@ -0,0 +1,20 @@
+#!/bin/sh
+LC_ALL=C
+export LC_ALL
+echo
+echo Generating Unicode2ascii translation table.
+(
+cat 7bitrepl.lnx | awk -f tr7bit.awk >tmp
+N=`cat tmp | wc -l`
+echo '/* Automatically generated by gen-7b */'
+echo
+echo 'static struct { int x; unsigned char *s; } unicode_7b ['`expr $N + 1`'] = {'
+sort tmp | sed 's/"/\\"/g' | sed 's/^/ { /' | sed 's/:/, "/' | sed 's/$/" },/'
+echo ' { -1, NULL }'
+echo '};'
+echo
+echo '#define N_UNICODE_7B' $N
+)>../uni_7b.inc
+rm -f tmp
+echo Done.
+echo