File: update-skkdic-yaskkserv

package info (click to toggle)
yaskkserv 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 964 kB
  • ctags: 906
  • sloc: cpp: 11,838; perl: 670; sh: 191; makefile: 131
file content (29 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (4)
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
#!/bin/sh
# dictionary update script for yaskkserv
#

set -e

[ -f /etc/default/yaskkserv ] && . /etc/default/yaskkserv

_convert () {
    DICFP=$1
    DICBN=`basename ${DICFP}`
    echo -n "generating: ${DICBN}.yaskkserv ... "
    yaskkserv_make_dictionary $DICFP /usr/share/yaskkserv/${DICBN}.yaskkserv && echo "done."
}

### update local dictionaries.
for dic in ${LOCAL_DICS}
do
    _convert $dic
done

### update system dictionaries.
for dic in /usr/share/skk/SKK-JISYO `dpkg -L skkdic skkdic-extra 2>/dev/null | grep /usr/share/skk/SKK-JISYO`
do
    _convert $dic
done

exit 0