Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > main > by-pkgid > d302d24f6b0d532bbff97e02d8aadb8f > 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