Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 981d0708b26953e8f4a9b4155e01cce2 > scriptlet

myspell-sk_SK-1.0.1-0.20020629.5mdk.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*sk\s*SK\s*sk_SK$/ or print" /usr/share/dict/ooo/dictionary.lst
fi

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*sk[ \t]*SK[ \t]*sk_SK" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT sk SK sk_SK" >> /usr/share/dict/ooo/dictionary.lst
fi