preinst is in pentium-builder 0.19.
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 | #!/bin/sh -e
if [ "install" = "$1" ] || [ "upgrade" = "$1" ]; then
dpkg-divert --package pentium-builder --add --rename \
--divert /usr/bin/gcc.real /usr/bin/gcc
dpkg-divert --package pentium-builder --add --rename \
--divert /usr/bin/g++.real /usr/bin/g++
# Clean up after an upgrade nightmare.
if [ -f /usr/bin/c++ -a -e /usr/bin/c++.real ]; then
rm -f /usr/bin/c++
fi
fi
|