File: fex.preinst

package info (click to toggle)
fex 20200429-1
  • links: PTS, VCS
  • area: non-free
  • in suites: sid
  • size: 3,532 kB
  • sloc: perl: 32,103; sh: 410; javascript: 53; makefile: 42
file content (21 lines) | stat: -rw-r--r-- 533 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
#!/bin/sh

set -e

if [ ! -z "$2" ];then
    # make sure we know which version we're upgrading from
    # in postinst we don't have that info anymore
    echo "Upgrade from $2 detected."
    # store away so we can put it into debconf at postinst time
    [ -d /usr/share/fex/ ]||mkdir -p /usr/share/fex/
    echo "$2" >/usr/share/fex/.lastver
fi

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

#DEBHELPER#

exit 0

# vi: set smartindent ts=4 sw=4 expandtab autoindent sts=4: