Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > f23f5fc7ea71a7ba30290b6c485b9ef7 > scriptlet

myspell-ro_RO-1.0.2-19.2mdv2008.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