File: igerman.prerm

package info (click to toggle)
hkgerman 2-7.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,344 kB
  • ctags: 6
  • sloc: makefile: 104; perl: 64; sh: 40; sed: 15
file content (26 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

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 german | grep 999`" ]
 then
  update-alternatives --remove ispell-dictionary.hash 		\
	/usr/lib/ispell/german.hash > /dev/null
  update-ispell-dictionary
 else
  update-alternatives --remove ispell-dictionary.hash 		\
	/usr/lib/ispell/german.hash > /dev/null
 fi
fi