| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
case "$1" in |
| 6 |
upgrade|install) |
| 7 |
# Remove an alternative that is temporally used by mecab-jumandic_4.0+0.76. |
| 8 |
if ( dpkg --compare-versions "$2" lt "4.0+0.77" ); then |
| 9 |
update-alternatives --remove mecab-dictionary /usr/lib/mecab/dic/juman |
| 10 |
rm -f /usr/lib/mecab/dic/debian |
| 11 |
fi |
| 12 |
;; |
| 13 |
abort-upgrade) |
| 14 |
;; |
| 15 |
*) |
| 16 |
echo "preinst called with unknown argument \`$1'" >&2 |
| 17 |
exit 1 |
| 18 |
;; |
| 19 |
esac |
| 20 |
|
| 21 |
# dh_installdeb will replace this with shell code automatically |
| 22 |
# generated by other debhelper scripts. |
| 23 |
|
| 24 |
#DEBHELPER# |
| 25 |
|
| 26 |
exit 0 |