Dodan divert za squirrelmail/functions/strings.php zbog problema s PHP/SquirrelMail.
[squirrelmail-cn.git] / debian / preinst
1 #!/bin/sh
2
3 set -e
4
5 # summary of how this script can be called:
6 #        * <new-preinst> `install'
7 #        * <new-preinst> `install' <old-version>
8 #        * <new-preinst> `upgrade' <old-version>
9 #        * <old-preinst> `abort-upgrade' <new-version>
10 # for details, see http://www.debian.org/doc/debian-policy/ or
11 # the debian-policy package
12
13
14 case "$1" in
15   install|upgrade)
16     dpkg-divert --package squirrelmail-cn --add --rename \
17       --divert /usr/share/squirrelmail/functions/strings.php.squirrelmail \
18         /usr/share/squirrelmail/functions/strings.php
19     ;;
20
21   abort-upgrade)
22     ;;
23
24   *)
25     echo "preinst called with unknown argument \`$1'" >&2
26     exit 1
27     ;;
28 esac
29
30 # dh_installdeb will replace this with shell code automatically
31 # generated by other debhelper scripts.
32
33 #DEBHELPER#
34
35 exit 0