File: postinst

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 (24 lines) | stat: -rw-r--r-- 641 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
#!/bin/sh -
# postinst of package iportuguese
# Adapted from postinst 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" ;;
    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/portuguese.hash 10 \
    --slave /usr/lib/ispell/default.aff ispell-dictionary.aff \
    /usr/lib/ispell/portuguese.aff > /dev/null
  update-ispell-dictionary
fi