Debian Codegraph @

debian/ipadic.postinst

raw
1 #!/bin/sh
2 # postinst script for ipadic
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 priority="50"
9
10 chasendir="/usr/share/chasen"
11 chasenrc="${chasendir}/ipadic.rc"
12 dictdir="${chasendir}/dic/ipadic"
13 srcdir=${dictdir}
14 destdir="/var/lib/chasen/dic/ipadic"
15
16 case "$1" in
17 configure)
18 update-alternatives \
19 --install /etc/chasenrc chasenrc ${chasenrc} ${priority} \
20 --slave /var/lib/chasen/dic/debian chasen-dictionary ${destdir}
21
22 ;;
23
24 abort-upgrade|abort-remove|abort-deconfigure)
25 ;;
26
27 *)
28 echo "postinst called with unknown argument \`$1'" >&2
29 exit 1
30 ;;
31 esac
32
33 # dh_installdeb will replace this with shell code automatically
34 # generated by other debhelper scripts.
35
36 #DEBHELPER#
37
38 exit 0
39
40