diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-12-21 13:48:39 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-12-21 13:48:39 +0100 |
commit | dba488ef4af76742cde7f5b03ef6f5453146eda6 (patch) | |
tree | 11c318e8ebd9eaab67edb50af33d510092264b90 /src/make_unicode_fold.sh | |
parent | eb5b295d37e9150e169cc95cbbc39f6ab7b88b2f (diff) | |
parent | 70de057dbb5ea79536834e156f534279347f96f3 (diff) |
Update upstream source from tag 'upstream/6.9.1'
Update to upstream version '6.9.1'
with Debian dir 30a97dee62f9f2b7c7a57e0e6622d9f503cf0256
Diffstat (limited to 'src/make_unicode_fold.sh')
-rwxr-xr-x | src/make_unicode_fold.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/make_unicode_fold.sh b/src/make_unicode_fold.sh index 45e9566..d5828e1 100755 --- a/src/make_unicode_fold.sh +++ b/src/make_unicode_fold.sh @@ -23,6 +23,13 @@ ${GPERF} ${GPERF_OPT} -F,-1 -N onigenc_unicode_fold2_key unicode_fold2_key.gperf ${GPERF} ${GPERF_OPT} -F,-1 -N onigenc_unicode_fold3_key unicode_fold3_key.gperf > ${TMP3} ./gperf_fold_key_conv.py 3 < ${TMP3} > unicode_fold3_key.c +# remove redundant EOLs before EOF +perl -i -pe 'BEGIN{undef $/}s/\n\n*\z/\n/;' unicode_fold_data.c +perl -i -pe 'BEGIN{undef $/}s/\n\n*\z/\n/;' unicode_fold1_key.c +perl -i -pe 'BEGIN{undef $/}s/\n\n*\z/\n/;' unicode_fold2_key.c +perl -i -pe 'BEGIN{undef $/}s/\n\n*\z/\n/;' unicode_fold3_key.c +perl -i -pe 'BEGIN{undef $/}s/\n\n*\z/\n/;' unicode_unfold_key.c + rm -f ${TMP0} ${TMP1} ${TMP2} ${TMP3} rm -f unicode_unfold_key.gperf unicode_fold1_key.gperf unicode_fold2_key.gperf unicode_fold3_key.gperf |