X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=squirrelmail-cn.git;a=blobdiff_plain;f=debian%2Fpreinst;fp=debian%2Fpreinst;h=cfcffc8f23e3f006e2771c9bd35997c7bee2e4e5;hp=0000000000000000000000000000000000000000;hb=c27a02a6e5d0d09c40d14b6ed808d44fc5d25954;hpb=b3a9ab092f7935d9706f1bac8e2516506e056866 diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..cfcffc8 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,35 @@ +#!/bin/sh + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + dpkg-divert --package squirrelmail-cn --add --rename \ + --divert /usr/share/squirrelmail/functions/strings.php.squirrelmail \ + /usr/share/squirrelmail/functions/strings.php + ;; + + 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. + +#DEBHELPER# + +exit 0