preinst is in icewm 1.4.3.0~pre-20180217-3.
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 -e
case "$1" in
install|upgrade)
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.0.8.6-1"
then
if [ -d /usr/share/doc/icewm ]; then
mv /usr/share/doc/icewm \
/usr/share/doc/icewm.moved-by-preinst
fi
fi
;;
esac
exit 0
|