Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 773b5b4d5bf007bdf4a626235634670a > scriptlet

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

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*el[ \t]*GR[ \t]*el_GR" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT el GR el_GR" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*el[ \t]*GR[ \t]*hyph_el_GR" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH el GR hyph_el_GR" >> /usr/share/dict/ooo/dictionary.lst
fi