File: prerm

package info (click to toggle)
iportuguese 19950819-6
  • links: PTS
  • area: main
  • in suites: slink
  • size: 464 kB
  • ctags: 2
  • sloc: sh: 59; makefile: 37; lisp: 17
file content (27 lines) | stat: -rw-r--r-- 714 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
#!/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

while [ "$1" != "" ] ; do
  case "$1" in
    upgrade) upgrade="Yes" ;;
    remove)  remove="Yes" ;;
  esac
  shift
done

if [ -n "$remove" ] ; then \
  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
fi