Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 5022f2c433bf6c1771dcdbbcee1542be > scriptlet

myspell-ca_ES-1.0.2-23mdv2009.0.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