summaryrefslogtreecommitdiff
path: root/src/make_unicode_property.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-10 05:12:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-10 05:12:17 +0200
commit5e01a4852b31d537307994248869caf38b4023cc (patch)
tree769c60020afcb58437477f348dca58fb0c789f64 /src/make_unicode_property.sh
parent766e109fd638ef1eac33717b52e04a351da46483 (diff)
Imported Upstream version 6.0.0upstream/6.0.0
Diffstat (limited to 'src/make_unicode_property.sh')
-rwxr-xr-xsrc/make_unicode_property.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/make_unicode_property.sh b/src/make_unicode_property.sh
new file mode 100755
index 0000000..5ee2990
--- /dev/null
+++ b/src/make_unicode_property.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+NAME=unicode_property_data
+TMP=gperf.tmp
+#GPERF_OPT='-P -Q prop_name_pool -C -c -t -j1 -L ANSI-C --ignore-case'
+GPERF_OPT='-T -C -c -t -j1 -L ANSI-C --ignore-case'
+
+./make_unicode_property_data.py > ${NAME}.gperf
+./make_unicode_property_data.py -posix > ${NAME}_posix.gperf
+
+gperf ${GPERF_OPT} -N unicode_lookup_property_name --output-file ${TMP} ${NAME}.gperf
+sed -e 's/^#line.*$//g' ${TMP} > ${NAME}.c
+gperf ${GPERF_OPT} -N unicode_lookup_property_name --output-file ${TMP} ${NAME}_posix.gperf
+sed -e 's/^#line.*$//g' ${TMP} > ${NAME}_posix.c
+
+rm -f ${NAME}.gperf ${NAME}_posix.gperf ${TMP}
+
+exit 0