File: postinst

package info (click to toggle)
ispanish 1.5-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,516 kB
  • ctags: 17
  • sloc: makefile: 103; perl: 54; sh: 40; lisp: 7; csh: 6
file content (24 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -

set -e

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

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

 update-ispell-dictionary

fi