diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-05 22:07:01 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-05 22:07:01 +0200 |
commit | bff9867dafed1bf5aa196614ec6cf2c83022c482 (patch) | |
tree | 13260e2b0cd22ff5327f9a56be748739ae5754ca /src/make_property.sh | |
parent | a38d6e8f8417b777925660269969ce2d353808ef (diff) | |
parent | c9b3c26db59d89e320a6eb86d9558051ecba0900 (diff) |
Update upstream source from tag 'upstream/6.9.0'
Update to upstream version '6.9.0'
with Debian dir 3b2adce63a2dab0d7e0e9124b922c348d239c1ec
Diffstat (limited to 'src/make_property.sh')
-rwxr-xr-x | src/make_property.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/make_property.sh b/src/make_property.sh new file mode 100755 index 0000000..071f3d0 --- /dev/null +++ b/src/make_property.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +TMP1=gperf1.tmp +TMP2=gperf2.tmp +GPERF=/usr/bin/gperf + +GPERF_OPT='-pt -T -L ANSI-C' + +ADD_CAST='s/return +len +\+ +asso_values/return (unsigned int )len + asso_values/' + +${GPERF} ${GPERF_OPT} -N onigenc_euc_jp_lookup_property_name --output-file ${TMP1} euc_jp_prop.gperf +cat ${TMP1} | sed -r "${ADD_CAST}" > euc_jp_prop.c + +${GPERF} ${GPERF_OPT} -N onigenc_sjis_lookup_property_name --output-file ${TMP2} sjis_prop.gperf +cat ${TMP2} | sed -r "${ADD_CAST}" > sjis_prop.c + +rm -f ${TMP1} ${TMP2} + +exit 0 |