preinst is in glade 3.12.0-0ubuntu1.
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 25 | #!/bin/sh
set -e
action="$1"
case "$action" in
upgrade)
version="$2"
# remove symlink from versions older than 2.91.3+CVS20060621-1 manually
# on upgrades
if dpkg --compare-versions "$version" lt 2.91.3+CVS20060621-1; then
rm -f /usr/share/doc/glade
fi
;;
install|abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$action'" >&2
exit 1
;;
esac
|