Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > main > by-pkgid > 65832328b28fab64f35a9e80c8f5013b > scriptlet

myspell-hyph-sv-1.0.2-0.20030814.9mdk.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

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