Debian Codegraph @

debian/mecab.postinst

raw
1 #! /bin/sh
2 # postinst script for mecab
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 reconfigure(){
9 if ( dpkg --status ${1} 2>/dev/null|egrep -q "^Status: install ok installed" ); then
10 dpkg-reconfigure ${1}
11 fi
12 }
13
14 case "$1" in
15 configure)
16 reconfigure mecab-ipadic
17 reconfigure mecab-jumandic
18 ;;
19 abort-upgrade|abort-remove|abort-deconfigure)
20 ;;
21 *)
22 echo "postinst called with unknown argument \`$1'" >&2
23 exit 1
24 ;;
25 esac
26
27 # dh_installdeb will replace this with shell code automatically
28 # generated by other debhelper scripts.
29
30 #DEBHELPER#
31
32 exit 0