File: prerm

package info (click to toggle)
iportuguese 19980611-2
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 472 kB
  • ctags: 1
  • sloc: sh: 62; makefile: 40
file content (32 lines) | stat: -rw-r--r-- 788 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
29
30
31
32
#!/bin/sh
# prerm of package iportuguese
# Adapted from prerm script of package iamerican by Rafael
#    Laboissiere <rafael@icp.inpg.fr> on Fri, 19 Jun 1998 11:51:11 +0200

set -e

case "$1" in
    remove)     
        if [ -n "`update-alternatives --display ispell-dictionary.hash \
                 | grep portuguese | grep 999`" ]; then \
          update-alternatives --remove ispell-dictionary.hash \
            /usr/lib/ispell/portuguese.hash > /dev/null
          update-ispell-dictionary
        else
          update-alternatives --remove ispell-dictionary.hash \
            /usr/lib/ispell/portuguese.hash > /dev/null
        fi
        ;;
    upgrade | failed-upgrade | deconfigure)
	;;
    *)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac

#DEBHELPER#

exit 0