This file is indexed.

preinst is in aspell-de 20151222-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#! /bin/sh
# preinst script for aspell-de

set -e

# summary of how this script can be called:
#        * <new-preinst> `install'
#        * <new-preinst> `install' <old-version>
#        * <new-preinst> `upgrade' <old-version>
#        * <old-preinst> `abort-upgrade' <new-version>

case "$1" in
    install|upgrade)
	# Sarge shipped with the files in /usr/lib/aspell-0.60
	if dpkg --compare-versions "$2" lt-nl 0.60-20030222-1-4 ; then
	    # if the user changed the link, remember the status
	    unset LANG LC_MESSAGES LC_ALL
	    if update-alternatives --display de.multi | grep -q 'status is manual' &&
		update-alternatives --display de.multi | grep -q 'points to.*-neu' ; then
		    echo "Preserving old alternative de.multi -> aspell-de"
		    echo neu > /var/lib/aspell/de.multi.alternative-neu
	    fi

	    # remove the old links
	    update-alternatives --remove de.multi /usr/lib/aspell-0.60/de-neu.multi || :
	fi
    ;;

    abort-upgrade)
    ;;

    *)
	echo "preinst called with unknown argument \`$1'" >&2
	exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

# Automatically added by installdeb-aspell
dico_class="aspell"
dico_compat="de.compat"

[ -d "/var/lib/$dico_class" ] || mkdir -p "/var/lib/$dico_class"

for i in $dico_compat; do
    >"/var/lib/$dico_class/$i"
done
# End automatically added section


exit 0

# vim:sw=4: