freebsd-ports/japanese/migemo/files/extra-patch-genchars.sh
MANTANI Nobutaka bac10487f1 Fix incompatibility with Ruby 1.9.
Reported by:	    linimon
2011-08-22 14:48:19 +00:00

10 lines
542 B
Bash

--- genchars.sh.orig 2001-08-13 18:30:48.000000000 +0900
+++ genchars.sh 2011-08-21 23:37:29.000000000 +0900
@@ -1,6 +1,6 @@
#! /bin/sh
-ruby -rromkan -nle 'head = split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> tmp.ascii.words
+ruby -Ke -rromkan -nle 'head = $_.split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> tmp.ascii.words
# Get the top 500 frequent ngrams.
for i in 1 2 3 4 5 6 7 8; do