summaryrefslogtreecommitdiff
path: root/source3/script/gaptab.awk
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-28 12:13:14 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-30 04:15:11 +0200
commit53d4ffcc227cd2d3a998718faeeeca0d1431e54b (patch)
tree0ecc265db86cdb0238538a6e7ef4c9834f7f1de8 /source3/script/gaptab.awk
parentc691ada7096a9c5c6c95de390329ebb16e2086c5 (diff)
downloadsamba-53d4ffcc227cd2d3a998718faeeeca0d1431e54b.tar.gz
samba-53d4ffcc227cd2d3a998718faeeeca0d1431e54b.tar.bz2
samba-53d4ffcc227cd2d3a998718faeeeca0d1431e54b.zip
s3-iconv: Remove unused script/gen-8bit-gap.sh
We decided to rely on a system iconv rather than these modules. Andrew Bartlett
Diffstat (limited to 'source3/script/gaptab.awk')
-rw-r--r--source3/script/gaptab.awk48
1 files changed, 0 insertions, 48 deletions
diff --git a/source3/script/gaptab.awk b/source3/script/gaptab.awk
deleted file mode 100644
index a309089cd5..0000000000
--- a/source3/script/gaptab.awk
+++ /dev/null
@@ -1,48 +0,0 @@
-BEGIN { hv["0"] = 0; hv["1"] = 1; hv["2"] = 2; hv["3"] = 3;
- hv["4"] = 4; hv["5"] = 5; hv["6"] = 6; hv["7"] = 7;
- hv["8"] = 8; hv["9"] = 9; hv["A"] = 10; hv["B"] = 11;
- hv["C"] = 12; hv["D"] = 13; hv["E"] = 14; hv["F"] = 15;
- hv["a"] = 10; hv["b"] = 11; hv["c"] = 12; hv["d"] = 13;
- hv["e"] = 14; hv["f"] = 15;
-
- first = 0; last = 0; idx = 0; f = 0;
-}
-
-function tonum(str)
-{
- num=0;
- cnt=1;
- while (cnt <= length(str)) {
- num *= 16;
- num += hv[substr(str,cnt,1)];
- ++cnt;
- }
- return num;
-}
-
-function fmt(val)
-{
- if (f++ % 8 == 0)
- { printf ("\n 0x%02x,", val); }
- else
- { printf (" 0x%02x,", val); }
-}
-
-{
- u = tonum($1); c = tonum($2);
-
- if (u - last > 6)
- {
- if (last) { idx += last - first + 1; }
- first = u;
- }
- else
- {
- for (m = last+1; m < u; m++) { fmt(0); }
- }
-
- fmt(c);
- last = u;
-}
-
-END { print "" }