Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > main > by-pkgid > 313a1ede47f57dfa2facb08286382c95 > scriptlet

myspell-ro_RO-1.0.2-0.20031023.9mdk.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