File: postinst

package info (click to toggle)
ifrench 1.4-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,204 kB
  • ctags: 9
  • sloc: makefile: 77; lisp: 59; sh: 28
file content (24 lines) | stat: -rw-r--r-- 622 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

set -e

if [ "$1" = "configure" ]; then
    update-alternatives --verbose --install \
			/usr/lib/ispell/default.hash ispell-dictionary.hash \
			/usr/lib/ispell/francais.hash 10 \
			--slave /usr/lib/ispell/default.aff ispell-dictionary.aff \
			/usr/lib/ispell/francais.aff > /dev/null
  
    # Only ask for a default dictionary when installing a new dictionary...
    if [ -z "$2" -o "$2" = "<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