This file is indexed.

preinst is in doc-base 0.10.8.

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
#!/bin/sh
# $Id: preinst 224 2011-03-04 14:05:50Z robert $
# vim:ts=4:sts=4:et:sw
# preinst for doc-base

# Abort if any command returns an error value
set -e

package=doc-base
infodir="/var/lib/$package/info"
docsdir="/var/lib/$package/documents"
omfdir="/var/lib/$package/omf"
compatver=0.10.0~


remove_obsolete() {
    rm -rf /var/lib/doc-base
}


if [ "$1" = "upgrade" ] &&  dpkg --compare-versions "$2" lt-nl "$compatver"; then
    remove_obsolete
fi




exit 0