blob: f7971afdb716cb2457d19b55f9a0954fcf81dcaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/bash -e
[[ ! -f generate-dictionary.sh ]] && { echo "generate-dictionary.sh not found."; exit 1; }
sed -i.bak1 \
-e '1s/sh/sh -e/' \
-e 's/ruby \(.*\)/ruby -EUTF-8 \1/g' \
generate-dictionary.sh \
edict-katakana-english/generate-dictionary.sh
# 1) Comment out specifying versions and initial cleanup
# 2) cp $srcdir/KEN_ALL.CSV to chimei/
# 3) Specify $srcdir/JIGYOSYO.CSV
# 4) Modify mozc-\$MOZCVER to mozc
# 5) Comment out making xz archive
sed -i.bak2 \
-e 's/^\(MOZCVER=.*\|DICVER=.*\|NICODIC=.*\)/#&/g' \
-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.bak2 \
-e '/^\(#\|ruby\|$\)/!s/^/#/g' \
edict-katakana-english/generate-dictionary.sh
|