#!/bin/sh

dictdir=`aspell dump config | grep '^# dict-dir current: ' | cut -d' ' -f4`
datadir=`aspell dump config | grep '^# data-dir current: ' | cut -d' ' -f4`

install -o root -g root -m 0644 swedish.dat        ${datadir}
install -o root -g root -m 0644 swedish_phonet.dat ${datadir}

aspell --lang=swedish create master ./swedish < svenska.ordlista

install -o root -g root -m 0644 swedish ${dictdir}
