#!/bin/sh -

set -e

while [ "$1" != "" ]
do
 case "$1" in
  upgrade) upgrade="Yes" ;;
  configure) configure="Yes" ;;
 esac
 shift
done

if [ -n "$configure" ]
then
 update-alternatives --verbose --install 				\
	/usr/lib/ispell/default.hash ispell-dictionary.hash 		\
	/usr/lib/ispell/danish.hash 10				\
	--slave /usr/lib/ispell/default.aff ispell-dictionary.aff 	\
	/usr/lib/ispell/danish.aff > /dev/null

 update-ispell-dictionary

fi
