File: prerm

package info (click to toggle)
iczech 19990918-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 964 kB
  • ctags: 7
  • sloc: sh: 61; makefile: 56; perl: 29
file content (30 lines) | stat: -rw-r--r-- 848 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
#!/bin/sh
# Last modification: Time-stamp: <1998-06-20 19:15:17 stefanb>
# prerm of package iamerican
#
# Adapted from Debian ispell (3.1.20-0.4). Petr Spatka <spatka@debian.cz>
 
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 czech | grep 999`" ]
        then
                update-alternatives --remove ispell-dictionary.hash     \
                        /usr/lib/ispell/czech.hash > /dev/null
                update-ispell-dictionary
        else
                update-alternatives --remove ispell-dictionary.hash     \
                        /usr/lib/ispell/czech.hash > /dev/null
        fi
fi