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 26 27 28 29 30 31 32
|
#!/bin/sh
# preinst of package iportuguese
# Written by Rafael Laboissiere <rafael@icp.inpg.fr> on 21 Jun 1998
# This script is needed for cleaning up `portugues.{hash,aff}'
# introduced by version 19950819-4
set -e
while [ "$1" != "" ] ; do
case "$1" in
upgrade) upgrade="Yes" ;
shift ;
version=$1 ;;
remove) remove="Yes" ;;
esac
shift
done
if [ -n "$upgrade" ] ; then \
if dpkg --compare-versions $version '=' 19950819-4 ; then \
if [ -n "`update-alternatives --display ispell-dictionary.hash \
| grep portugues | grep 999`" ]; then \
update-alternatives --remove ispell-dictionary.hash \
/usr/lib/ispell/portugues.hash > /dev/null
update-ispell-dictionary
else
update-alternatives --remove ispell-dictionary.hash \
/usr/lib/ispell/portugues.hash > /dev/null
fi
fi
fi
|