preinst is in libfox-1.6-dev 1.6.56-1.
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 | #!/bin/sh
# preinst script for fox
#
# see: dh_installdeb(1)
set -e
vers=1.6
# remove still existing alternatives from older packages
if test -e /etc/alternatives/fox-config; then
update-alternatives --remove fox-config /usr/bin/fox-config-$vers 2>/dev/null
fi
if test -e /etc/alternatives/reswrap; then
update-alternatives --remove reswrap /usr/bin/reswrap-$vers 2>/dev/null
fi
exit 0
|