File: ipadic.postinst

package info (click to toggle)
ipadic 2.7.0%2Bmain-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 24,312 kB
  • ctags: 61
  • sloc: sh: 570; makefile: 90
file content (40 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# postinst script for ipadic
#
# see: dh_installdeb(1)

set -e

priority="50"

chasendir="/usr/share/chasen"
chasenrc="${chasendir}/ipadic.rc"
dictdir="${chasendir}/dic/ipadic"
srcdir=${dictdir}
destdir="/var/lib/chasen/dic/ipadic"

case "$1" in
    configure)
    update-alternatives \
     --install /etc/chasenrc chasenrc ${chasenrc} ${priority} \
     --slave /var/lib/chasen/dic/debian chasen-dictionary ${destdir} 

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0