File: postinst

package info (click to toggle)
ispell-czech 20010104-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,800 kB
  • ctags: 4
  • sloc: perl: 646; sh: 61; makefile: 49
file content (32 lines) | stat: -rw-r--r-- 969 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 -e
# $Id: iamerican.postinst,v 1.4 1999/10/22 07:54:57 david Exp $
# Adapted from Debian ispell (3.1.20-4). Petr Spatka <spatka@debian.cz>

while [ "$1" != "" ]
do
       case "$1" in
               abort*)         abort="Yes" ;;
               configure)      configure="Yes" ; version="$2" ;;
       esac
       shift
done

if      [ -n "$configure" ]
then    update-alternatives --verbose --install \
               /usr/lib/ispell/default.hash ispell-dictionary.hash \
               /usr/lib/ispell/czech.hash 10 \
               --slave /usr/lib/ispell/default.aff ispell-dictionary.aff \
               /usr/lib/ispell/czech.aff > /dev/null

	# Only ask for a default dictionary when installing a new dictionary...
	if [ -z "$version" -o "$version" = "<unknown>" ]; then 
		update-ispell-dictionary
	fi

	echo "Please note that you can run '/usr/sbin/update-ispell-dictionary'" 
	echo "to change the default ispell dictionary."
fi

#DEBHELPER#

exit 0