Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 3782a5eb6bdb85576765d2b163b21e21 > scriptlet

myspell-et_EE-1.0.2-27mdv2009.1.noarch.rpm

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*et[ \t]*EE[ \t]*et_EE" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT et EE et_EE" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*et[ \t]*EE[ \t]*hyph_et_EE" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH et EE hyph_et_EE" >> /usr/share/dict/ooo/dictionary.lst
fi