Debian Codegraph @

debian/fex.preinst

raw
1 #!/bin/sh
2
3 set -e
4
5 if [ ! -z "$2" ];then
6 # make sure we know which version we're upgrading from
7 # in postinst we don't have that info anymore
8 echo "Upgrade from $2 detected."
9 # store away so we can put it into debconf at postinst time
10 [ -d /usr/share/fex/ ]||mkdir -p /usr/share/fex/
11 echo "$2" >/usr/share/fex/.lastver
12 fi
13
14 # dh_installdeb will replace this with shell code automatically
15 # generated by other debhelper scripts.
16
17 #DEBHELPER#
18
19 exit 0
20
21 # vi: set smartindent ts=4 sw=4 expandtab autoindent sts=4: