summaryrefslogtreecommitdiff
path: root/src/make_property.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:34:10 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:34:10 +0200
commitf3d6e46ce3762b6f51a166119d3982fd3715507a (patch)
tree0935fb6da7f1d9728b42ddf08395a0e977e1c228 /src/make_property.sh
parent043fff5b6f2461aeccb1c62cb771826cfe301832 (diff)
parent73c6133c32cddae59813cbadf655cb50a3a7356a (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/make_property.sh')
-rwxr-xr-xsrc/make_property.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/make_property.sh b/src/make_property.sh
index cef0a96..e5f1244 100755
--- a/src/make_property.sh
+++ b/src/make_property.sh
@@ -1,6 +1,7 @@
#!/bin/sh
GPERF=gperf
+SED=gsed
TMP1=gperf1.tmp
TMP2=gperf2.tmp
@@ -10,10 +11,10 @@ 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
+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
+cat ${TMP2} | ${SED} -r "${ADD_CAST}" > sjis_prop.c
rm -f ${TMP1} ${TMP2}