This file is indexed.

preinst is in libogre-1.8.0 1.8.0+dfsg1-7+b1.

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
#!/bin/sh

set -e





if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
    dpkg-maintscript-helper rm_conffile /etc/OGRE/plugins.cfg 1.7.3-5~ libogre-1.7.3 -- "$@"
    dpkg-maintscript-helper rm_conffile /etc/OGRE-1.7.3/plugins.cfg 1.7.3-6~ libogre-1.7.3 -- "$@"
fi

# Remove obsolete config files/directories from previous packages.  It doesn't
# work completely with "dpkg-maintscript-helper rm_conffile" because the binary
# .deb package name changes, due to SONAME bumps
rm -f /etc/OGRE/plugins.cfg.dpkg-remove
if [ -d /etc/OGRE-1.7.3 ]; then
    rmdir --ignore-fail-on-non-empty /etc/OGRE-1.7.3
fi
if [ -d /etc/OGRE ]; then
    rmdir --ignore-fail-on-non-empty /etc/OGRE
fi