Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 4b3d47fd5883f70ba83aab855e67814a > scriptlet

myspell-es_ES-1.0.2-29.1mdv2009.1.noarch.rpm

PREUN

/bin/sh
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^DICT\s*es\s*ES\s*es_ES$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^HYPH\s*es\s*ES\s*hyph_es_ES$/ or print" /usr/share/dict/ooo/dictionary.lst
fi
if [[ "$1" = "0" ]]; then
  perl -ni -e "/^THES\s*es\s*ES\s*th_es_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]*es[ \t]*ES[ \t]*es_ES" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT es ES es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*es[ \t]*ES[ \t]*hyph_es_ES" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH es ES hyph_es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^THES[ \t]*es[ \t]*ES[ \t]*th_es_ES" /usr/share/dict/ooo/dictionary.lst
then
  echo "THES es ES th_es_ES" >> /usr/share/dict/ooo/dictionary.lst
fi