preinst is in gimp 2.6.12-1ubuntu1.4.
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 | #!/bin/sh -e
if [ "$1" = "install" -o "$1" = "upgrade" ]; then
# Clean up older links from this package
update-alternatives --remove gimp /usr/bin/gimp-1.2
update-alternatives --remove gimptool /usr/bin/gimptool-1.3
update-alternatives --remove gimp /usr/bin/gimp-2.0
update-alternatives --remove gimp /usr/bin/gimp-2.2
fi
|