Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > 74ecc1b1ebda8a472cf2b3577e03b897 > scriptlet

myspell-thes-sk_SK-1.0.2-0.20050218.9mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^THES\s*sk\s*SK\s*th_sk_SK$/ 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 "^THES[ \t]*sk[ \t]*SK[ \t]*th_sk_SK" /usr/share/dict/ooo/dictionary.lst
then
  echo "THES sk SK th_sk_SK" >> /usr/share/dict/ooo/dictionary.lst
fi