File: postinst

package info (click to toggle)
mecab-jumandic 4.0%2B0.77-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,308 kB
  • ctags: 11
  • sloc: perl: 221; sh: 50; makefile: 47
file content (28 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
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
#! /bin/sh
# postinst script for mecab-jumandic
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure)
	echo "Compiling Juman dictionary for Mecab.  This takes long time..."
	cd /var/lib/mecab/dic/juman && mkmecabdic
	update-alternatives --install /var/lib/mecab/dic/debian \
	    mecab-dictionary /var/lib/mecab/dic/juman 30
	;;
    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