summarylogtreecommitdiffstats
path: root/mod-generate-dictionary.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mod-generate-dictionary.sh')
-rwxr-xr-xmod-generate-dictionary.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/mod-generate-dictionary.sh b/mod-generate-dictionary.sh
index a1638c63efb..f7971afdb71 100755
--- a/mod-generate-dictionary.sh
+++ b/mod-generate-dictionary.sh
@@ -2,7 +2,7 @@
[[ ! -f generate-dictionary.sh ]] && { echo "generate-dictionary.sh not found."; exit 1; }
-sed -i.bak \
+sed -i.bak1 \
-e '1s/sh/sh -e/' \
-e 's/ruby \(.*\)/ruby -EUTF-8 \1/g' \
generate-dictionary.sh \
@@ -13,17 +13,18 @@ sed -i.bak \
# 3) Specify $srcdir/JIGYOSYO.CSV
# 4) Modify mozc-\$MOZCVER to mozc
# 5) Comment out making xz archive
-sed -i.bak \
+sed -i.bak2 \
-e 's/^\(MOZCVER=.*\|DICVER=.*\|NICODIC=.*\)/#&/g' \
- -e '/rm -rf mozc-$MOZCVER/s/^/#/g' \
- -e '/echo "extract official mozc..."/,+1s/^/#/g' \
- -e '/rm -f \*\.zip/,+6s/^/#/g' \
- -e '/cd chimei/a cp -f ../../KEN_ALL.CSV .' \
+ -e '/^rm -rf ..\/mozc-/s/^/#/g' \
+ -e '/echo "extract official mozc..."/,+3s/^/#/g' \
+ -e '/^wget /,+3s/^/#/g' \
+ -e '/# modify zip code data/a cp -f ../../KEN_ALL.CSV .' \
-e 's|JIGYOSYO.CSV|../../JIGYOSYO.CSV|' \
-e 's|mozc-\$MOZCVER|mozc|g' \
-e '/# compress mozc-ut/,+4s/^/#/g' \
generate-dictionary.sh
-sed -i.bak \
+sed -i.bak2 \
-e '/^\(#\|ruby\|$\)/!s/^/#/g' \
edict-katakana-english/generate-dictionary.sh
+