preinst is in libc6-dev-i386 2.15-0ubuntu10.
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 | #!/bin/sh
set -e
case $1 in
(upgrade|install)
# We want /usr/include/bits and /usr/include/gnu to become
# symlinks
if ! test -h /usr/include/bits ; then
rm -rf /usr/include/bits
fi
if ! test -h /usr/include/gnu ; then
rm -rf /usr/include/gnu
fi
# We want /usr/include/sys to be a normal directory instead
# of a symlink
if test -h /usr/include/sys ; then
rm -f /usr/include/sys
fi
;;
(*)
;;
esac
|