preinst is in icewm-common 1.3.7-5.
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 -e
case "$1" in
install|upgrade)
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.2.21+1.2.22pre1-1"
then
# remove known deprecated stuff
md5sum /etc/gdm/Sessions/IceWM* 2>/dev/null | \
while read sum file ; do \
case $sum in d86142d41ded68895123a8f3faf0e8d6|\
3a803b511c1a62cfb6788d253b6fc2eb|b8e153b68ed4c0a4ce6e0d55f2e12448|\
9b8c9c0b308cf3b5751d7740e62caf59|4d3c84fa5c7254f18c669f6f5d86fb71|\
243467a510c14fbb42291e7f6bb1d57e|f2ea8361ffe954fe429acb48362e1743|\
84ff63904692c206bddf2254445a6523) rm $file
;;
esac ;
done
fi
;;
esac
exit 0
|