Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > media > main > by-pkgid > fc78e4cd7661fc208ba9bc39e25e7e0d > scriptlet

myspell-ru_RU-1.0.1-0.20030108.5mdk.noarch.rpm

PREUN

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

POSTIN

/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] ||       ! grep -q "^DICT[ \t]*ru[ \t]*RU[ \t]*ru_RU" /usr/share/dict/ooo/dictionary.lst
then
  echo "DICT ru RU ru_RU" >> /usr/share/dict/ooo/dictionary.lst
fi