preinst is in automake 1:1.14.1-2ubuntu1.
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 | #!/bin/sh
set -e
if [ "$1" = "upgrade" ]; then
if dpkg --compare-versions "$2" ge "1:1.11" && \
dpkg --compare-versions "$2" lt "1:1.12"; then
update-alternatives --remove automake /usr/bin/automake-1.11
fi
if dpkg --compare-versions "$2" ge "1:1.12" && \
dpkg --compare-versions "$2" lt "1:1.13"; then
update-alternatives --remove automake /usr/bin/automake-1.12
fi
if dpkg --compare-versions "$2" ge "1:1.13" && \
dpkg --compare-versions "$2" lt "1:1.14"; then
update-alternatives --remove automake /usr/bin/automake-1.13
fi
fi
|