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 33 34 35 36 37 38 39
|
#!/bin/sh
set -e
if [ "$1" = "configure" ]
then
if [ -d /usr/doc -a ! -e /usr/doc/igerman -a -d /usr/share/doc/igerman ]
then
ln -sf ../share/doc/igerman /usr/doc/igerman
fi
fi
while [ "$1" != "" ]
do
case "$1" in
upgrade) upgrade="Yes" ;;
configure) configure="Yes" ; version="$2" ;;
esac
shift
done
if [ -n "$configure" ]
then
update-alternatives --verbose --install \
/usr/lib/ispell/default.hash ispell-dictionary.hash \
/usr/lib/ispell/german.hash 10 \
--slave /usr/lib/ispell/default.aff ispell-dictionary.aff \
/usr/lib/ispell/german.aff > /dev/null
# Only ask for a default dictionary when installing a new dictionary...
if [ -z "$version" -o "$version" = "<unknown>" ]; then
update-ispell-dictionary
fi
echo "Please note that you can run '/usr/sbin/update-ispell-dictionary'"
echo "to change the default ispell dictionary."
fi
|