summaryrefslogtreecommitdiff
path: root/source3/script/gen-8bit-gap.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script/gen-8bit-gap.sh.in')
-rwxr-xr-xsource3/script/gen-8bit-gap.sh.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/script/gen-8bit-gap.sh.in b/source3/script/gen-8bit-gap.sh.in
index e66c654c22..bcf64a4464 100755
--- a/source3/script/gen-8bit-gap.sh.in
+++ b/source3/script/gen-8bit-gap.sh.in
@@ -31,9 +31,7 @@ echo " */"
echo '#include "includes.h"'
echo
echo "static const uint16 to_ucs2[256] = {"
-sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d' \
- -e 's/^<U\(....\)>[[:space:]]*.x\(..\).*/ [0x\2] = 0x\1,/p' \
- "$CHARMAP" | sort -u
+cat "$CHARMAP" | @AWK@ -f @srcdir@/script/gen-8bit-gap.awk
echo "};"
echo
echo "static const struct charset_gap_table from_idx[] = {"