Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 43a6698973b05f7e2eadaec6fce5ca38 > scriptlet

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

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*ro[ \t]*RO[ \t]*ro_RO" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT ro RO ro_RO" >> /usr/share/dict/ooo/dictionary.lst
fi
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^HYPH[ \t]*ro[ \t]*RO[ \t]*hyph_ro_RO" /usr/share/dict/ooo/dictionary.lst
then
  echo "HYPH ro RO hyph_ro_RO" >> /usr/share/dict/ooo/dictionary.lst
fi