preinst is in tcl8.4-dev 8.4.19-4ubuntu3.
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
set -e
# remove old symlink if it's still hanging around.
if [ -L /usr/share/doc/tcl8.4-dev ]; then
rm -f /usr/share/doc/tcl8.4-dev
fi
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "8.4.16-2"; then
update-alternatives --remove tcl.m4 /usr/lib/tcl8.4/tcl.m4
# We really want to remove this alternative
update-alternatives --auto tcl.m4 >/dev/null || true
fi
|