preinst is in apcalc-dev 2.12.5.0-1build1.
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 | #!/bin/sh
set -e
# /usr/doc/apcalc-dev was a link up to apcalc-dev 2.10.3t5.46-1 but is a
# directory now. So we have to make sure to remove the link before installing
# the new package, because otherwise, dpkg will follow the link and our files
# will end up in the wrong directory.
[ -L /usr/doc/apcalc-dev ] && rm /usr/doc/apcalc-dev
exit 0
|