preinst is in libgtk2.0-0 2.24.30-1ubuntu1.
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 | #!/bin/sh
set -e
# remove /usr/share/doc symlinks as it's a directory since 2.12.5-2
pkg=libgtk2.0-0
oldsymtarget=libgtk2.0-common
if [ "$1" = upgrade ] && [ -L /usr/share/doc/$pkg ] && [ $oldsymtarget = "$(readlink /usr/share/doc/$pkg)" ]; then
rm -f /usr/share/doc/$pkg
fi
|