Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > b43313e9388037649259781ea4e0937f > scriptlet

myspell-ca_ES-1.0.2-29mdv2010.1.noarch.rpm

PREUN

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

POSTIN

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