This file is indexed.

preinst is in perl-doc 5.14.2-6ubuntu2.

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

if [ "$1" = install ] || [ "$1" = upgrade ]
then
    dpkg-divert --add --package perl-doc --rename \
	--divert /usr/bin/perldoc.stub /usr/bin/perldoc
fi

# this used to be a symlink, see #536384
if [ -h /usr/share/doc/perl-doc ]; then
    rm -f /usr/share/doc/perl-doc
fi

exit 0