Sophie

Sophie

distrib > Mandriva > 2008.0 > i586 > by-pkgid > c90457f0668d807cb0547aefe6c75b53 > scriptlet

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

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