Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 26b160b899daa5f89dfe1e001ee039b6 > scriptlet

myspell-hyph-sv-1.0.2-0.20030814.1mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*sv\s*SE\s*hyph_sv$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

##
## Files for spell checking
##

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*sv[ \t]*SE[ \t]*hyph_sv" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH sv SE hyph_sv" >> /usr/share/dict/ooo/dictionary.lst
fi